Skip to content

Commit

Permalink
ci: skip Github CI on branch pushes for forks
Browse files Browse the repository at this point in the history
Similar to e9bfbb5 for Cirrus, but
not opt-in, because Github CI lacks custom variables.
  • Loading branch information
Sjors committed Sep 20, 2024
1 parent f37d926 commit 53f852b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ on:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push.
push:
branches:
- '**'
# When a contributor maintains a fork of the repo, any pull request they make
# to their own fork, or to the main repository, will trigger two CI runs:
# one for the branch push and one for the pull request.
#
# For Cirrus CI this can opted out of by setting a custom env variable, but that's
# not possible on Github CI. Instead we disable CI on branch pushes to all forks.
# It will still run for pull requests.
- 'bitcoin/**'
- 'bitcoin-core/**'
tags-ignore:
- '**'

Expand Down

0 comments on commit 53f852b

Please sign in to comment.