Skip to content

Commit

Permalink
improve GHA triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jan 3, 2024
1 parent 5bb3c1c commit da50f6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: lint-code
on: [push]
on: [push, pull_request]

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# Use ruff to check for code style violations
ruff-check:
Expand Down

0 comments on commit da50f6b

Please sign in to comment.