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 `master` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
  • Loading branch information
str4d committed Oct 5, 2023
1 parent b6a6c6e commit 8bace89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/audits.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Audits

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

permissions:
contents: read
Expand Down
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

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

jobs:
build:
Expand Down

0 comments on commit 8bace89

Please sign in to comment.