Skip to content

Commit

Permalink
Trigger Github Actions only once per commit
Browse files Browse the repository at this point in the history
Previously, CI via Github Actions would be triggered multiple times per
push if there is an open PR for the corresponding branch. When a
developer pushes a new commit, the first run would be triggered by the
`push` event, and the second run triggered by the `pull_request` event
(because pushing new commits _alters_ the pull request).
  • Loading branch information
peterstace committed Mar 31, 2023
1 parent 18cb502 commit 9311e27
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9311e27

Please sign in to comment.