Skip to content

Commit

Permalink
ci: trigger job on push to main and also cancel concurrent jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Aug 5, 2024
1 parent 7834aba commit 93643b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Test

on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: test-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
latest:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 93643b8

Please sign in to comment.