From c33f3467a2410bd5363daf9a3cdcb5de0f46344e Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 29 Jul 2022 09:37:15 +0000 Subject: [PATCH] - cancel actions on concurrent runs --- .github/workflows/check-dist.yml | 4 ++++ .github/workflows/ci.yml | 10 +++++++--- .github/workflows/codeql-analysis.yml | 4 ++++ README.md | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index e92f736e..1e7fad89 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -16,6 +16,10 @@ on: - '**.md' workflow_dispatch: +concurrency: + group: ${{ github.event.pull_request.number }}-check + cancel-in-progress: true + jobs: check-dist: runs-on: ubuntu-latest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 003f7be7..37162878 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: - '*' pull_request: +concurrency: + group: ${{ github.event.pull_request.number }}-ci + cancel-in-progress: true + jobs: build: if: github.event_name == 'pull_request' @@ -37,9 +41,9 @@ jobs: # Since 3.2.0 the configuration can be provided within the `yml` file - name: "Configuration without Checkout" id: without_checkout - uses: mikepenz/release-changelog-builder-action@f55f49981dfb29d4ceedb6ad6667acccaa6dc6ef + uses: mikepenz/release-changelog-builder-action@develop with: - toTag: "v0.0.3" + toTag: "v3.1.1" configurationJson: | { "template": "#{{CHANGELOG}}\n\n
\nUncategorized\n\n#{{UNCATEGORIZED}}\n
", @@ -64,7 +68,7 @@ jobs: "title": "## 📦 Dependencies", "labels": ["dependencies"] } - ], + ] } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index eb4b0048..7516e803 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,10 @@ on: schedule: - cron: '41 22 * * 4' +concurrency: + group: ${{ github.event.pull_request.number }}-codeql + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/README.md b/README.md index 110f1fdf..557c9f47 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ jobs: "title": "## 📦 Dependencies", "labels": ["dependencies"] } - ], + ] } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}