Skip to content

Commit bc43204

Browse files
committed
Provide ref fallback value in the check_commits CI
Previously, we introduced a chance dynamically determining the base branch for the `check_commits` CI job. Unfortunately it used the `base_ref` variable, which is only set for `pull_request`s, not for `push`es. Here, we therefore also provide a `ref_name` fallback value, which should also work for our post-merge 'push' CI.
1 parent 6b7e9f9 commit bc43204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ jobs:
219219
git fetch upstream
220220
export GIT_COMMITTER_EMAIL="[email protected]"
221221
export GIT_COMMITTER_NAME="RL CI"
222-
git rebase upstream/${{ github.base_ref }}
222+
git rebase upstream/${{ github.base_ref || github.ref_name }}
223223
- name: For each commit, run cargo check (including in fuzz)
224-
run: ci/check-each-commit.sh upstream/${{ github.base_ref }}
224+
run: ci/check-each-commit.sh upstream/${{ github.base_ref || github.ref_name }}
225225

226226
check_release:
227227
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)