- cancel actions on concurrent runs

This commit is contained in:
Mike Penz
2022-07-29 11:45:38 +02:00
parent 3728477799
commit c33f3467a2
4 changed files with 16 additions and 4 deletions
+4
View File
@@ -16,6 +16,10 @@ on:
- '**.md' - '**.md'
workflow_dispatch: workflow_dispatch:
concurrency:
group: ${{ github.event.pull_request.number }}-check
cancel-in-progress: true
jobs: jobs:
check-dist: check-dist:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+7 -3
View File
@@ -5,6 +5,10 @@ on:
- '*' - '*'
pull_request: pull_request:
concurrency:
group: ${{ github.event.pull_request.number }}-ci
cancel-in-progress: true
jobs: jobs:
build: build:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
@@ -37,9 +41,9 @@ jobs:
# Since 3.2.0 the configuration can be provided within the `yml` file # Since 3.2.0 the configuration can be provided within the `yml` file
- name: "Configuration without Checkout" - name: "Configuration without Checkout"
id: without_checkout id: without_checkout
uses: mikepenz/release-changelog-builder-action@f55f49981dfb29d4ceedb6ad6667acccaa6dc6ef uses: mikepenz/release-changelog-builder-action@develop
with: with:
toTag: "v0.0.3" toTag: "v3.1.1"
configurationJson: | configurationJson: |
{ {
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>", "template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
@@ -64,7 +68,7 @@ jobs:
"title": "## 📦 Dependencies", "title": "## 📦 Dependencies",
"labels": ["dependencies"] "labels": ["dependencies"]
} }
], ]
} }
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+4
View File
@@ -20,6 +20,10 @@ on:
schedule: schedule:
- cron: '41 22 * * 4' - cron: '41 22 * * 4'
concurrency:
group: ${{ github.event.pull_request.number }}-codeql
cancel-in-progress: true
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
+1 -1
View File
@@ -157,7 +157,7 @@ jobs:
"title": "## 📦 Dependencies", "title": "## 📦 Dependencies",
"labels": ["dependencies"] "labels": ["dependencies"]
} }
], ]
} }
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}