Skip to content

Commit

Permalink
- cancel actions on concurrent runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jul 29, 2022
1 parent 3728477 commit c33f346
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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>",
Expand All @@ -64,7 +68,7 @@ jobs:
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
],
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
],
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c33f346

Please sign in to comment.