From 03d109a3cf07ed72b7ea0ad3e2dec88442e2e961 Mon Sep 17 00:00:00 2001 From: Matthias Erll Date: Thu, 16 Apr 2026 16:59:06 +0200 Subject: [PATCH 1/2] ci: added pull_request trigger to avoid pending jobs --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6fd3e8e8bb..36d9de7c72 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,13 @@ on: - '**' tags-ignore: - '*' + pull_request: + types: + - opened + - synchronize + - reopened + branches: + - '**' workflow_dispatch: ~ env: CACHE_REGISTRY: ghcr.io From 8d3c47851186493c953d2de9489610009fcdd956 Mon Sep 17 00:00:00 2001 From: Matthias Erll Date: Tue, 21 Apr 2026 20:45:41 +0200 Subject: [PATCH 2/2] ci: added check on repository --- .github/workflows/main.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8e5bd10f2..2279e1ca8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,13 +5,6 @@ on: - '**' tags-ignore: - '*' - pull_request: - types: - - opened - - synchronize - - reopened - branches: - - '**' workflow_dispatch: ~ env: CACHE_REGISTRY: ghcr.io @@ -25,7 +18,7 @@ env: jobs: build-test-cache: - if: (!contains(github.event.head_commit.message, 'ci skip') && !startsWith(github.ref, 'refs/tags/') && !github.event.act) + if: (!contains(github.event.head_commit.message, 'ci skip') && !startsWith(github.ref, 'refs/tags/') && !github.event.act && github.repository == 'linode/apl-core') runs-on: ubuntu-22.04 steps: - name: Set env @@ -65,7 +58,7 @@ jobs: push-to-docker: needs: build-test-cache - if: always() && ((contains(needs.build-test-cache.result, 'success') && !contains(needs.integration.outputs.started, 'true')) || (contains(needs.integration.result, 'success'))) && !github.event.act && github.actor != 'dependabot[bot]' + if: always() && ((contains(needs.build-test-cache.result, 'success') && !contains(needs.integration.outputs.started, 'true')) || (contains(needs.integration.result, 'success'))) && !github.event.act && github.actor != 'dependabot[bot]' && github.repository == 'linode/apl-core' runs-on: ubuntu-22.04 steps: - name: Push to docker hub @@ -130,7 +123,7 @@ jobs: echo "machine github.com login ${{ env.BOT_USERNAME }} password ${{ secrets.BOT_TOKEN }}" > ~/.netrc git tag -am "$COMMIT_MSG" $release_tag && git push --follow-tags # Cut the CHANGELOG.md file up to the second occurence of the line starting with `## [` (meaning two #, a space,a square bracket). - # This way we always get the changes of the latest patch (if any) and the latest minor. + # This way we always get the changes of the latest patch (if any) and the latest minor. awk '/^## \[/{count++; if(count==2) exit} {print}' CHANGELOG.md > NEW_CHANGELOG.md - name: Create GitHub release uses: ncipollo/release-action@v1.21.0