Skip to content

Commit

Permalink
Only trigger github actions on push or PR to main
Browse files Browse the repository at this point in the history
In the current state, if I want to make a PR and I push a branch to that
effect, all the CI jobs get trigered twice.

With this change, we will still test contributions at the time that
matters: when a change to main is proposed.
  • Loading branch information
pierrechevalier83 committed Feb 20, 2022
1 parent 5db330c commit 6c884f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

name: Rust

Expand Down

0 comments on commit 6c884f3

Please sign in to comment.