Adjusted header blocks and added header blocks to files without license header.

This commit is contained in:
Patrick Lehmann
2021-12-07 20:40:56 +01:00
parent bb26a274f3
commit 59beccb198
19 changed files with 419 additions and 310 deletions

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: ArtifactCleanUp name: ArtifactCleanUp
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Documentation name: Documentation
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Coverage Collection name: Coverage Collection
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Package name: Package
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Parameters name: Parameters
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Publish on PyPI name: Publish on PyPI
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Publish Unit Test Results name: Publish Unit Test Results
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Publish to GitHub Pages name: Publish to GitHub Pages
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Release name: Release
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Static Type Check name: Static Type Check
on: on:

View File

@@ -1,3 +1,24 @@
# ==================================================================================================================== #
# Authors: #
# Unai Martinez-Corral #
# #
# ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
# SPDX-License-Identifier: Apache-2.0 #
# ==================================================================================================================== #
name: Test Releaser name: Test Releaser
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Unit Testing name: Unit Testing
on: on:

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: # Authors: #
# Patrick Lehmann # Patrick Lehmann #
# Unai Martinez-Corral # Unai Martinez-Corral #
# # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: Verify examples name: Verify examples
on: on:

View File

@@ -1,3 +1,25 @@
# ==================================================================================================================== #
# Authors: #
# Patrick Lehmann #
# Unai Martinez-Corral #
# #
# ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
# SPDX-License-Identifier: Apache-2.0 #
# ==================================================================================================================== #
name: Pipeline name: Pipeline
on: on:

View File

@@ -1,3 +1,24 @@
# ==================================================================================================================== #
# Authors: #
# Unai Martinez-Corral #
# #
# ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
# SPDX-License-Identifier: Apache-2.0 #
# ==================================================================================================================== #
name: 'Releaser' name: 'Releaser'
description: 'Publish releases, upload assets and update tip/nightly tags' description: 'Publish releases, upload assets and update tip/nightly tags'
inputs: inputs:

View File

@@ -1,3 +1,24 @@
# ==================================================================================================================== #
# Authors: #
# Unai Martinez-Corral #
# #
# ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
# SPDX-License-Identifier: Apache-2.0 #
# ==================================================================================================================== #
name: 'Releaser' name: 'Releaser'
description: 'Publish releases, upload assets and update tip/nightly tags' description: 'Publish releases, upload assets and update tip/nightly tags'
inputs: inputs:

View File

@@ -1,5 +1,26 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# ==================================================================================================================== #
# Authors: #
# Patrick Lehmann #
# Unai Martinez-Corral #
# #
# ==================================================================================================================== #
# Copyright 2020-2021 The pyTooling Authors #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
# SPDX-License-Identifier: Apache-2.0 #
# ==================================================================================================================== #
import re import re
from sys import argv, stdout, exit as sys_exit from sys import argv, stdout, exit as sys_exit
from os import environ, getenv from os import environ, getenv

View File

@@ -1,25 +1,25 @@
# ============================================================================== # ==================================================================================================================== #
# Authors: Patrick Lehmann # Authors: #
# Unai Martinez-Corral # Patrick Lehmann #
# # Unai Martinez-Corral #
# License: # #
# ============================================================================== # ==================================================================================================================== #
# Copyright 2020-2021 pyTooling # Copyright 2020-2021 The pyTooling Authors #
# # #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at # You may obtain a copy of the License at #
# # #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0 #
# # #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and #
# limitations under the License. # limitations under the License. #
# # #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0 #
# ============================================================================== # ==================================================================================================================== #
name: With post step name: With post step
description: 'Generic JS Action to execute a main command and set a command as a post step.' description: 'Generic JS Action to execute a main command and set a command as a post step.'

View File

@@ -1,26 +1,29 @@
// Authors: /* ================================================================================================================== *
// Unai Martinez-Corral * Authors: *
// * Unai Martinez-Corral *
// Copyright 2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> * *
// * ================================================================================================================== *
// Licensed under the Apache License, Version 2.0 (the "License"); * Copyright 2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> *
// you may not use this file except in compliance with the License. * *
// You may obtain a copy of the License at * Licensed under the Apache License, Version 2.0 (the "License"); *
// * you may not use this file except in compliance with the License. *
// http://www.apache.org/licenses/LICENSE-2.0 * You may obtain a copy of the License at *
// * *
// Unless required by applicable law or agreed to in writing, software * http://www.apache.org/licenses/LICENSE-2.0 *
// distributed under the License is distributed on an "AS IS" BASIS, * *
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * Unless required by applicable law or agreed to in writing, software *
// See the License for the specific language governing permissions and * distributed under the License is distributed on an "AS IS" BASIS, *
// limitations under the License. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
// * See the License for the specific language governing permissions and *
// SPDX-License-Identifier: Apache-2.0 * limitations under the License. *
* *
// Context: * SPDX-License-Identifier: Apache-2.0 *
// * https://github.com/docker/login-action/issues/72 * ================================================================================================================== *
// * https://github.com/actions/runner/issues/1478 * *
* Context: *
* * https://github.com/docker/login-action/issues/72 *
* * https://github.com/actions/runner/issues/1478 *
* ================================================================================================================== */
const { exec } = require("child_process"); const { exec } = require("child_process");
function run(cmd) { function run(cmd) {