Skip to content

Commit

Permalink
CI: Only run CI workflow once per PR
Browse files Browse the repository at this point in the history
The previous configuration would run CI twice for every PR, on:
- The merge commit with the base branch.
- The tip commit of the PR branch.

The latter is only useful for debugging. However, we still want to run
CI directly on the `main` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
  • Loading branch information
str4d committed Mar 8, 2024
1 parent e7be194 commit 46f2815
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI checks

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

jobs:
test:
Expand Down

0 comments on commit 46f2815

Please sign in to comment.