|
80 | 80 | # See: https://github.com/actions/runner-images#available-images.
|
81 | 81 | runs-on: macos-14
|
82 | 82 |
|
83 |
| - # No need to run on the read-only mirror, unless it is a PR. |
84 |
| - if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request' |
| 83 | + # When a contributor maintains a fork of the repo, any pull request they make |
| 84 | + # to their own fork, or to the main repository, will trigger two CI runs: |
| 85 | + # one for the branch push and one for the pull request. |
| 86 | + # This can be avoided by setting SKIP_BRANCH_PUSH=true as a custom env variable |
| 87 | + # in Github repository settings. |
| 88 | + if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }} |
85 | 89 |
|
86 | 90 | timeout-minutes: 120
|
87 | 91 |
|
@@ -135,8 +139,7 @@ jobs:
|
135 | 139 | # See: https://github.com/actions/runner-images#available-images.
|
136 | 140 | runs-on: windows-2022
|
137 | 141 |
|
138 |
| - # No need to run on the read-only mirror, unless it is a PR. |
139 |
| - if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request' |
| 142 | + if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }} |
140 | 143 |
|
141 | 144 | env:
|
142 | 145 | PYTHONUTF8: 1
|
@@ -215,8 +218,7 @@ jobs:
|
215 | 218 | asan-lsan-ubsan-integer-no-depends-usdt:
|
216 | 219 | name: 'ASan + LSan + UBSan + integer, no depends, USDT'
|
217 | 220 | runs-on: ubuntu-24.04 # has to match container in ci/test/00_setup_env_native_asan.sh for tracing tools
|
218 |
| - # No need to run on the read-only mirror, unless it is a PR. |
219 |
| - if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request' |
| 221 | + if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }} |
220 | 222 | timeout-minutes: 120
|
221 | 223 | env:
|
222 | 224 | FILE_ENV: "./ci/test/00_setup_env_native_asan.sh"
|
|
0 commit comments