Skip to content

Commit

Permalink
Only run ci workflow on pushes to or PRs against main
Browse files Browse the repository at this point in the history
Otherwise, it runs twice for a PR.
  • Loading branch information
mdio committed Oct 12, 2023
1 parent f1deb83 commit 491ab18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: ci

on: [ push, pull_request ]
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-test:
Expand Down

0 comments on commit 491ab18

Please sign in to comment.