Skip to content

Commit 5ffe039

Browse files
committed
f Determine BASE_BRANCH programmatically
1 parent 641ba71 commit 5ffe039

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,10 @@ jobs:
198198
git fetch upstream
199199
export GIT_COMMITTER_EMAIL="[email protected]"
200200
export GIT_COMMITTER_NAME="RL CI"
201-
git rebase upstream/0.1
201+
export BASE_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
202+
git rebase upstream/"$BASE_BRANCH"
202203
- name: For each commit, run cargo check (including in fuzz)
203-
run: ci/check-each-commit.sh upstream/0.1
204+
run: ci/check-each-commit.sh upstream/"$BASE_BRANCH"
204205

205206
check_release:
206207
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)