Skip to content

Commit

Permalink
Replace fkirc/skip-duplicate-actions with cancel-in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Oct 14, 2022
1 parent e68cb45 commit 8653d74
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ env: # Comment env block if you do not want to apply fixes
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request)

jobs:
# Cancel duplicate jobs: https://github.com/fkirc/skip-duplicate-actions#option-3-cancellation-only
cancel_duplicates:
name: Cancel duplicate jobs
runs-on: ubuntu-latest
steps:
- uses: fkirc/skip-duplicate-actions@v5
with:
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
# Cancel duplicate jobs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Mega-Linter
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8653d74

Please sign in to comment.