Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/verify-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ jobs:
- name: Commit Accepted API Changes
if: steps.detect.outputs.has_changes == 'true'
shell: bash
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
git config --global user.name 'Sentry Github Bot'
git config --global user.email 'bot+github-bot@sentry.io'
Expand All @@ -179,7 +181,7 @@ jobs:
# Push from detached HEAD to the PR branch. Fails non-fast-forward
# if the contributor pushed since we snapshotted head.sha — workflow
# fails red, re-run regenerates against the new head.
git push origin "HEAD:refs/heads/${{ github.event.pull_request.head.ref }}"
git push origin "HEAD:refs/heads/$PR_HEAD_REF"

- name: Label Public API PR
if: steps.detect.outputs.has_changes == 'true'
Expand Down
Loading