Skip to content

Commit 301d15a

Browse files
committed
ci: skip Github CI on branch pushes for forks
Similar to the previous commit, however the behavior isn't opt-in with NO_BRANCH, because Github CI lacks custom variables.
1 parent 25eb88f commit 301d15a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push.
1010
push:
1111
branches:
12-
- '**'
12+
# Disable CI on branch pushes to forks. It will still run for pull requests.
13+
# This prevents CI from running twice for typical pull request workflows.
14+
- 'bitcoin/**'
15+
- 'bitcoin-core/**'
1316
tags-ignore:
1417
- '**'
1518

0 commit comments

Comments
 (0)