Skip to content

Commit

Permalink
Merge pull request #24 from askb/fix-reuse-change-id
Browse files Browse the repository at this point in the history
Fix: Set the Gerrit branch as GITHUB_BASE_REF
  • Loading branch information
askb authored Oct 25, 2024
2 parents 6bb02a6 + 3d739af commit 1daf48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/github2gerrit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
- name: Set env GITHUB branch in env
shell: bash
run: |
gerrit_branch="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
gerrit_branch="${GITHUB_BASE_REF:-master}"
echo "GERRIT_BRANCH=${gerrit_branch}" >> "$GITHUB_ENV"
- name: Print last X commits in the git log
Expand Down

0 comments on commit 1daf48c

Please sign in to comment.