Skip to content

Commit

Permalink
chore: optimize ci (#481)
Browse files Browse the repository at this point in the history
* chore: prevent ci from running twice on PRs

Now CI will only run on push to `master` and PRs to `master`. Previously, it was
running twice on each push to a PR branch, once for the PR to `master` and once 
for pushing to the PR branch.
  • Loading branch information
matifali authored Sep 9, 2024
1 parent 3dd723a commit 3cc37b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: ci
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
Expand Down

0 comments on commit 3cc37b4

Please sign in to comment.