From fbc377651d7acd6bff022cbfb5411498b873a07d Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 14:58:57 +0200 Subject: [PATCH 1/8] fix(workflows): Correct workflow naming convention All catalog entries must follow the following format: library/: Signed-off-by: Alexander Jung --- .github/workflows/library-bun1.1.yaml | 2 +- .github/workflows/library-caddy2.7.yaml | 2 +- .github/workflows/library-grafana10.2.yaml | 2 +- .github/workflows/library-haproxy2.8.yaml | 2 +- .github/workflows/library-imaginary1.2.yaml | 2 +- .github/workflows/library-lua5.4.4.yaml | 2 +- .github/workflows/library-nginx1.25.yaml | 2 +- .github/workflows/library-perl5.38.yaml | 2 +- .github/workflows/library-php8.2.yaml | 2 +- .github/workflows/library-python3.12.yaml | 2 +- .github/workflows/library-redis7.2.yaml | 2 +- .github/workflows/library-ruby3.2.yaml | 2 +- .github/workflows/library-skipper0.18.yaml | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/library-bun1.1.yaml b/.github/workflows/library-bun1.1.yaml index 4ba50e4b..ad7c3c8c 100644 --- a/.github/workflows/library-bun1.1.yaml +++ b/.github/workflows/library-bun1.1.yaml @@ -1,4 +1,4 @@ -name: library/bun1.1 +name: library/bun:1.1 on: schedule: diff --git a/.github/workflows/library-caddy2.7.yaml b/.github/workflows/library-caddy2.7.yaml index 606c85c7..dd883887 100644 --- a/.github/workflows/library-caddy2.7.yaml +++ b/.github/workflows/library-caddy2.7.yaml @@ -1,4 +1,4 @@ -name: library/caddy2.7 +name: library/caddy:2.7 on: repository_dispatch: diff --git a/.github/workflows/library-grafana10.2.yaml b/.github/workflows/library-grafana10.2.yaml index b2878695..47c96340 100644 --- a/.github/workflows/library-grafana10.2.yaml +++ b/.github/workflows/library-grafana10.2.yaml @@ -1,4 +1,4 @@ -name: library/grafana10.2 +name: library/grafana:10.2 on: schedule: diff --git a/.github/workflows/library-haproxy2.8.yaml b/.github/workflows/library-haproxy2.8.yaml index 4c29d5b3..62cb9c15 100644 --- a/.github/workflows/library-haproxy2.8.yaml +++ b/.github/workflows/library-haproxy2.8.yaml @@ -1,4 +1,4 @@ -name: library/haproxy2.8 +name: library/haproxy:2.8 on: schedule: diff --git a/.github/workflows/library-imaginary1.2.yaml b/.github/workflows/library-imaginary1.2.yaml index 6bd84b54..f0b07669 100644 --- a/.github/workflows/library-imaginary1.2.yaml +++ b/.github/workflows/library-imaginary1.2.yaml @@ -1,4 +1,4 @@ -name: library/imaginary1.2 +name: library/imaginary:1.2 on: schedule: diff --git a/.github/workflows/library-lua5.4.4.yaml b/.github/workflows/library-lua5.4.4.yaml index 72a8560b..e9fe4e68 100644 --- a/.github/workflows/library-lua5.4.4.yaml +++ b/.github/workflows/library-lua5.4.4.yaml @@ -1,4 +1,4 @@ -name: library/lua5.4.4 +name: library/lua:5.4.4 on: repository_dispatch: diff --git a/.github/workflows/library-nginx1.25.yaml b/.github/workflows/library-nginx1.25.yaml index 6f139f98..43f8082e 100644 --- a/.github/workflows/library-nginx1.25.yaml +++ b/.github/workflows/library-nginx1.25.yaml @@ -1,4 +1,4 @@ -name: library/nginx1.25 +name: library/nginx:1.25 on: repository_dispatch: diff --git a/.github/workflows/library-perl5.38.yaml b/.github/workflows/library-perl5.38.yaml index 44a07640..bec6d74c 100644 --- a/.github/workflows/library-perl5.38.yaml +++ b/.github/workflows/library-perl5.38.yaml @@ -1,4 +1,4 @@ -name: library/perl5.38 +name: library/perl:5.38 on: repository_dispatch: diff --git a/.github/workflows/library-php8.2.yaml b/.github/workflows/library-php8.2.yaml index 770cf073..f4445eb5 100644 --- a/.github/workflows/library-php8.2.yaml +++ b/.github/workflows/library-php8.2.yaml @@ -1,4 +1,4 @@ -name: library/php8.2 +name: library/php:8.2 on: repository_dispatch: diff --git a/.github/workflows/library-python3.12.yaml b/.github/workflows/library-python3.12.yaml index 66039be5..b3f87ed0 100644 --- a/.github/workflows/library-python3.12.yaml +++ b/.github/workflows/library-python3.12.yaml @@ -1,4 +1,4 @@ -name: library/python3.12 +name: library/python:3.12 on: repository_dispatch: diff --git a/.github/workflows/library-redis7.2.yaml b/.github/workflows/library-redis7.2.yaml index b204647e..4695b2b1 100644 --- a/.github/workflows/library-redis7.2.yaml +++ b/.github/workflows/library-redis7.2.yaml @@ -1,4 +1,4 @@ -name: library/redis7.2 +name: library/redis:7.2 on: repository_dispatch: diff --git a/.github/workflows/library-ruby3.2.yaml b/.github/workflows/library-ruby3.2.yaml index 7fa8237b..4faaf794 100644 --- a/.github/workflows/library-ruby3.2.yaml +++ b/.github/workflows/library-ruby3.2.yaml @@ -1,4 +1,4 @@ -name: library/ruby3.2 +name: library/ruby:3.2 on: repository_dispatch: diff --git a/.github/workflows/library-skipper0.18.yaml b/.github/workflows/library-skipper0.18.yaml index e3927d2b..cbcdd6c0 100644 --- a/.github/workflows/library-skipper0.18.yaml +++ b/.github/workflows/library-skipper0.18.yaml @@ -1,4 +1,4 @@ -name: library/skipper0.18 +name: library/skipper:0.18 on: repository_dispatch: From ea4ac90feb1df49ff366614e52517d03fb115fc1 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:04:54 +0200 Subject: [PATCH 2/8] fix(workflows): Correct path to library Signed-off-by: Alexander Jung --- .github/workflows/library-bun1.1.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/library-bun1.1.yaml b/.github/workflows/library-bun1.1.yaml index ad7c3c8c..2ed49c7c 100644 --- a/.github/workflows/library-bun1.1.yaml +++ b/.github/workflows/library-bun1.1.yaml @@ -39,7 +39,7 @@ jobs: uses: unikraft/kraftkit@staging with: loglevel: debug - workdir: library/bun1.1 + workdir: library/bun/1.1 runtimedir: /github/workspace/.kraftkit plat: ${{ matrix.plat }} arch: ${{ matrix.arch }} From ee463e2173bf0304b8444b5fbeda7dc0021a363f Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:09:29 +0200 Subject: [PATCH 3/8] fix(merge-oci-digests): Reduce wget verbosity Signed-off-by: Alexander Jung --- .github/actions/merge-oci-digests/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/merge-oci-digests/action.yaml b/.github/actions/merge-oci-digests/action.yaml index e0bc0647..424eb7fc 100644 --- a/.github/actions/merge-oci-digests/action.yaml +++ b/.github/actions/merge-oci-digests/action.yaml @@ -33,7 +33,7 @@ runs: KRAFTKIT_LOG_TYPE: basic run: | STAGING_RELEASE=$(curl https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name'); - wget https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; + wget -nv https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; sudo dpkg -i kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; kraft pkg ls --apps --all; kraft pkg push ${{ inputs.name }}; From fce8a5d7364f2ca84298a13d2078682ef70188a9 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:10:09 +0200 Subject: [PATCH 4/8] fix(merge-oci-digests): Do not check for updates (as is staging) Signed-off-by: Alexander Jung --- .github/actions/merge-oci-digests/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/merge-oci-digests/action.yaml b/.github/actions/merge-oci-digests/action.yaml index 424eb7fc..231133ec 100644 --- a/.github/actions/merge-oci-digests/action.yaml +++ b/.github/actions/merge-oci-digests/action.yaml @@ -31,6 +31,7 @@ runs: KRAFTKIT_RUNTIME_DIR: ${{ github.workspace }}/.kraftkit/runtime KRAFTKIT_LOG_LEVEL: debug KRAFTKIT_LOG_TYPE: basic + KRAFTKIT_NO_CHECK_UPDATES: true run: | STAGING_RELEASE=$(curl https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name'); wget -nv https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; From ce616dbcf7db88ba5c5fc2f311416871ce4bec47 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:11:27 +0200 Subject: [PATCH 5/8] fix(merge-oci-digests): Reduce curl verbosity Signed-off-by: Alexander Jung --- .github/actions/merge-oci-digests/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/merge-oci-digests/action.yaml b/.github/actions/merge-oci-digests/action.yaml index 231133ec..4d773f07 100644 --- a/.github/actions/merge-oci-digests/action.yaml +++ b/.github/actions/merge-oci-digests/action.yaml @@ -33,7 +33,7 @@ runs: KRAFTKIT_LOG_TYPE: basic KRAFTKIT_NO_CHECK_UPDATES: true run: | - STAGING_RELEASE=$(curl https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name'); + STAGING_RELEASE=$(curl -sS https://api.github.com/repos/unikraft/kraftkit/releases | jq -r 'map(select(.prerelease)) | first | .tag_name'); wget -nv https://github.com/unikraft/kraftkit/releases/download/${STAGING_RELEASE}/kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; sudo dpkg -i kraftkit_${STAGING_RELEASE:1}_linux_amd64.deb; kraft pkg ls --apps --all; From fe27f037e637865fd1c2bb24963aa6c096a2d860 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:18:29 +0200 Subject: [PATCH 6/8] fix(merge-oci-digests): Downgrade `actions/download-artifact` This is because the accompanying action, `actions/upload-artifact` is still at v3 which is stated as non-compatible. Additionally, the README for v4 indicates major changes and backward compatibility issues. The easy fix for now to solve merging OCI manifests together (which fails currently because it cannot retrieve the downloaded artifacts from the previous dependent workflows), is just to simply downgrade. A solution in the future which upgrades must also adjust the action settings in order to achieve the same functionality. Signed-off-by: Alexander Jung --- .github/actions/merge-oci-digests/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/merge-oci-digests/action.yaml b/.github/actions/merge-oci-digests/action.yaml index 4d773f07..b5a28b2e 100644 --- a/.github/actions/merge-oci-digests/action.yaml +++ b/.github/actions/merge-oci-digests/action.yaml @@ -16,7 +16,7 @@ runs: using: composite steps: - name: Retrieve OCI digests - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: path: ${{ github.workspace }}/.kraftkit/downloads From af07bfb40cc8ffb2c622ae33bc8a7dc7926b7434 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:21:37 +0200 Subject: [PATCH 7/8] fix(workflows): Remove linting pipelines These pipelines consistently fail across PRs and are always ignored. Additional work is necessary, either through configuration or by maintenance to the repository, for this workflow to pass. For now, simply remove until a solution can be determined. Signed-off-by: Alexander Jung --- .github/workflows/linting.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml deleted file mode 100644 index f6df124c..00000000 --- a/.github/workflows/linting.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Linter Actions - -on: - pull_request: - branches: - - main - -jobs: - super-linter: - name: Super Linter - runs-on: ubuntu-latest - steps: - - name: Super Linter - uses: open-education-hub/actions/super-linter@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - spellcheck: - name: Spellcheck - runs-on: ubuntu-latest - steps: - - name: Spellcheck - uses: open-education-hub/actions/spellcheck@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6c5f1d53d5d0407c48c5691737b4c7aa24945e6e Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 22 Aug 2024 15:29:23 +0200 Subject: [PATCH 8/8] feat(workflows): Auto-cancel in-progress actions with the same ref Signed-off-by: Alexander Jung --- .github/workflows/library-base.yaml | 5 +++++ .github/workflows/library-bun1.1.yaml | 5 +++++ .github/workflows/library-caddy2.7.yaml | 5 +++++ .github/workflows/library-dragonfly1.14.yaml | 5 +++++ .github/workflows/library-findtime.yaml | 5 +++++ .github/workflows/library-grafana10.2.yaml | 5 +++++ .github/workflows/library-haproxy2.8.yaml | 5 +++++ .github/workflows/library-helloworld.yaml | 5 +++++ .github/workflows/library-hugo0.122.yaml | 5 +++++ .github/workflows/library-imaginary1.2.yaml | 5 +++++ .github/workflows/library-java17.yaml | 5 +++++ .github/workflows/library-lua5.4.4.yaml | 5 +++++ .github/workflows/library-lua5.4.yaml | 5 +++++ .github/workflows/library-mariadb11.2.yaml | 5 +++++ .github/workflows/library-memcached1.6.yaml | 5 +++++ .github/workflows/library-mongo6.0.yaml | 5 +++++ .github/workflows/library-nginx1.15.yaml | 5 +++++ .github/workflows/library-nginx1.25.yaml | 5 +++++ .github/workflows/library-node18.yaml | 5 +++++ .github/workflows/library-node20.yaml | 5 +++++ .github/workflows/library-node21.yaml | 5 +++++ .github/workflows/library-perl5.38.yaml | 5 +++++ .github/workflows/library-php8.2.yaml | 5 +++++ .github/workflows/library-python3.10.yaml | 5 +++++ .github/workflows/library-python3.12.yaml | 5 +++++ .github/workflows/library-redis7.0.yaml | 5 +++++ .github/workflows/library-redis7.2.yaml | 5 +++++ .github/workflows/library-ruby3.2.yaml | 5 +++++ .github/workflows/library-skipper0.18.yaml | 5 +++++ .github/workflows/library-sqlite3.40.yaml | 5 +++++ .github/workflows/library-surreal1.1.yaml | 5 +++++ 31 files changed, 155 insertions(+) diff --git a/.github/workflows/library-base.yaml b/.github/workflows/library-base.yaml index b9d1c1dd..1ed4da2b 100644 --- a/.github/workflows/library-base.yaml +++ b/.github/workflows/library-base.yaml @@ -22,6 +22,11 @@ on: - 'library/base/**' - '.github/workflows/library-base.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-bun1.1.yaml b/.github/workflows/library-bun1.1.yaml index 2ed49c7c..db17b7d8 100644 --- a/.github/workflows/library-bun1.1.yaml +++ b/.github/workflows/library-bun1.1.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-bun1.1.yaml' - '!library/bun/1.1/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-caddy2.7.yaml b/.github/workflows/library-caddy2.7.yaml index dd883887..f4774a3d 100644 --- a/.github/workflows/library-caddy2.7.yaml +++ b/.github/workflows/library-caddy2.7.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-caddy2.7.yaml' - '!library/caddy/2.7/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-dragonfly1.14.yaml b/.github/workflows/library-dragonfly1.14.yaml index 103ba7ff..64173b52 100644 --- a/.github/workflows/library-dragonfly1.14.yaml +++ b/.github/workflows/library-dragonfly1.14.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-dragonfly1.14.yaml' - '!library/dragonfly/1.14/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-findtime.yaml b/.github/workflows/library-findtime.yaml index 829ef466..8c15d83c 100644 --- a/.github/workflows/library-findtime.yaml +++ b/.github/workflows/library-findtime.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-findtime.yaml' - '!library/findtime/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-grafana10.2.yaml b/.github/workflows/library-grafana10.2.yaml index 47c96340..41f5b5a4 100644 --- a/.github/workflows/library-grafana10.2.yaml +++ b/.github/workflows/library-grafana10.2.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-grafana10.2.yaml' - '!library/grafana/10.2/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-haproxy2.8.yaml b/.github/workflows/library-haproxy2.8.yaml index 62cb9c15..4b770559 100644 --- a/.github/workflows/library-haproxy2.8.yaml +++ b/.github/workflows/library-haproxy2.8.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-haproxy2.8.yaml' - '!library/haproxy/2.8/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-helloworld.yaml b/.github/workflows/library-helloworld.yaml index 70963909..48fb2cf3 100644 --- a/.github/workflows/library-helloworld.yaml +++ b/.github/workflows/library-helloworld.yaml @@ -21,6 +21,11 @@ on: - 'library/helloworld/**' - '.github/workflows/library-helloworld.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-hugo0.122.yaml b/.github/workflows/library-hugo0.122.yaml index 5cc0d8f3..c73363bd 100644 --- a/.github/workflows/library-hugo0.122.yaml +++ b/.github/workflows/library-hugo0.122.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-hugo0.122.yaml' - '!library/hugo/0.122/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-imaginary1.2.yaml b/.github/workflows/library-imaginary1.2.yaml index f0b07669..89b2c608 100644 --- a/.github/workflows/library-imaginary1.2.yaml +++ b/.github/workflows/library-imaginary1.2.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-imaginary1.2.yaml' - '!library/imaginary/1.2/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-java17.yaml b/.github/workflows/library-java17.yaml index 329245f9..d7c2b050 100644 --- a/.github/workflows/library-java17.yaml +++ b/.github/workflows/library-java17.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-java17.yaml' - '!library/java/17/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-lua5.4.4.yaml b/.github/workflows/library-lua5.4.4.yaml index e9fe4e68..704acad4 100644 --- a/.github/workflows/library-lua5.4.4.yaml +++ b/.github/workflows/library-lua5.4.4.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-lua5.4.4.yaml' - '!library/lua/5.4.4/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-lua5.4.yaml b/.github/workflows/library-lua5.4.yaml index c4b46b3e..2f70fb10 100644 --- a/.github/workflows/library-lua5.4.yaml +++ b/.github/workflows/library-lua5.4.yaml @@ -22,6 +22,11 @@ on: - 'library/lua/5.4/**' - '.github/workflows/library-lua5.4.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-mariadb11.2.yaml b/.github/workflows/library-mariadb11.2.yaml index 6ea3114c..a33e3862 100644 --- a/.github/workflows/library-mariadb11.2.yaml +++ b/.github/workflows/library-mariadb11.2.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-mariadb11.2.yaml' - '!library/mariadb/11.2/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-memcached1.6.yaml b/.github/workflows/library-memcached1.6.yaml index 20e4c334..c07cfda5 100644 --- a/.github/workflows/library-memcached1.6.yaml +++ b/.github/workflows/library-memcached1.6.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-memcached1.6.yaml' - '!library/memcached/1.6/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-mongo6.0.yaml b/.github/workflows/library-mongo6.0.yaml index 8e14b7fd..337844bc 100644 --- a/.github/workflows/library-mongo6.0.yaml +++ b/.github/workflows/library-mongo6.0.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-mongo6.0.yaml' - '!library/mongo/6.0/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-nginx1.15.yaml b/.github/workflows/library-nginx1.15.yaml index 28f7079c..ceb97d99 100644 --- a/.github/workflows/library-nginx1.15.yaml +++ b/.github/workflows/library-nginx1.15.yaml @@ -22,6 +22,11 @@ on: - 'library/nginx/1.15/**' - '.github/workflows/library-nginx1.15.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-nginx1.25.yaml b/.github/workflows/library-nginx1.25.yaml index 43f8082e..662a19c2 100644 --- a/.github/workflows/library-nginx1.25.yaml +++ b/.github/workflows/library-nginx1.25.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-nginx1.25.yaml' - '!library/nginx/1.25/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-node18.yaml b/.github/workflows/library-node18.yaml index a88fe6db..281c1620 100644 --- a/.github/workflows/library-node18.yaml +++ b/.github/workflows/library-node18.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-node18.yaml' - '!library/node/18/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-node20.yaml b/.github/workflows/library-node20.yaml index d3ecfc42..17bc8db8 100644 --- a/.github/workflows/library-node20.yaml +++ b/.github/workflows/library-node20.yaml @@ -22,6 +22,11 @@ on: - '.github/workflows/library-node20.yaml' - '!library/node/20/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-node21.yaml b/.github/workflows/library-node21.yaml index be057ee2..0de22dd2 100644 --- a/.github/workflows/library-node21.yaml +++ b/.github/workflows/library-node21.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-node21.yaml' - '!library/node/21/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-perl5.38.yaml b/.github/workflows/library-perl5.38.yaml index bec6d74c..424fdc9f 100644 --- a/.github/workflows/library-perl5.38.yaml +++ b/.github/workflows/library-perl5.38.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-perl5.38.yaml' - '!library/perl/5.38/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-php8.2.yaml b/.github/workflows/library-php8.2.yaml index f4445eb5..21993cf5 100644 --- a/.github/workflows/library-php8.2.yaml +++ b/.github/workflows/library-php8.2.yaml @@ -22,6 +22,11 @@ on: - 'library/php/8.2/**' - '.github/workflows/library-php8.2.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-python3.10.yaml b/.github/workflows/library-python3.10.yaml index a26915a7..d895d53e 100644 --- a/.github/workflows/library-python3.10.yaml +++ b/.github/workflows/library-python3.10.yaml @@ -22,6 +22,11 @@ on: - 'library/python/3.10/**' - '.github/workflows/library-python3.10.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-python3.12.yaml b/.github/workflows/library-python3.12.yaml index b3f87ed0..3539b0c1 100644 --- a/.github/workflows/library-python3.12.yaml +++ b/.github/workflows/library-python3.12.yaml @@ -22,6 +22,11 @@ on: - 'library/python/3.12/**' - '.github/workflows/library-python3.12.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-redis7.0.yaml b/.github/workflows/library-redis7.0.yaml index 8e4adc13..75a04221 100644 --- a/.github/workflows/library-redis7.0.yaml +++ b/.github/workflows/library-redis7.0.yaml @@ -22,6 +22,11 @@ on: - 'library/redis/7.0/**' - '.github/workflows/library-redis7.0.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-redis7.2.yaml b/.github/workflows/library-redis7.2.yaml index 4695b2b1..73a5161c 100644 --- a/.github/workflows/library-redis7.2.yaml +++ b/.github/workflows/library-redis7.2.yaml @@ -22,6 +22,11 @@ on: - 'library/redis/7.2/**' - '.github/workflows/library-redis7.2.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-ruby3.2.yaml b/.github/workflows/library-ruby3.2.yaml index 4faaf794..30d896d5 100644 --- a/.github/workflows/library-ruby3.2.yaml +++ b/.github/workflows/library-ruby3.2.yaml @@ -22,6 +22,11 @@ on: - 'library/ruby/3.2/**' - '.github/workflows/library-ruby3.2.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-skipper0.18.yaml b/.github/workflows/library-skipper0.18.yaml index cbcdd6c0..364e6b8b 100644 --- a/.github/workflows/library-skipper0.18.yaml +++ b/.github/workflows/library-skipper0.18.yaml @@ -24,6 +24,11 @@ on: - '.github/workflows/library-skipper0.18.yaml' - '!library/skipper/0.18/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-sqlite3.40.yaml b/.github/workflows/library-sqlite3.40.yaml index 1ca3a8ee..1e52b0dc 100644 --- a/.github/workflows/library-sqlite3.40.yaml +++ b/.github/workflows/library-sqlite3.40.yaml @@ -22,6 +22,11 @@ on: - 'library/sqlite/3.40/**' - '.github/workflows/library-sqlite3.40.yaml' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/library-surreal1.1.yaml b/.github/workflows/library-surreal1.1.yaml index 32f0c2d2..c89b5359 100644 --- a/.github/workflows/library-surreal1.1.yaml +++ b/.github/workflows/library-surreal1.1.yaml @@ -19,6 +19,11 @@ on: - '.github/workflows/library-surreal1.1.yaml' - '!library/surreal/1.1/README.md' +# Automatically cancel in-progress actions on the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: strategy: