Skip to content

Commit

Permalink
chore: use concurrency to prevent double-running jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
peschee committed Oct 19, 2023
1 parent ad45e58 commit 803dfe9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Lint

# Prevent pull requests trigger duplicate checks for both [push] and [pull_request]
# @see https://github.com/orgs/community/discussions/26940
on:
push:
branches-ignore:
- 'dependabot/**' #avoid duplicates: only run the PR, not the push
- 'gh-pages' #github pages do not trigger all tests
tags-ignore:
- 'v*' #avoid rerun existing commit on release
pull_request:
branches:
- 'main'
- 'next'
- master
pull_request:

# https://github.com/orgs/community/discussions/26681
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
Expand Down

0 comments on commit 803dfe9

Please sign in to comment.