- 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'
workflow_dispatch:
concurrency:
group: ${{ github.event.pull_request.number }}-check
cancel-in-progress: true
jobs:
check-dist:
runs-on: ubuntu-latest
+7 -3
View File
@@ -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<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
@@ -64,7 +68,7 @@ jobs:
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
],
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+4
View File
@@ -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
+1 -1
View File
@@ -157,7 +157,7 @@ jobs:
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
],
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}