Skip to content

Commit

Permalink
ci/check-size: checkout HEAD commit instead of merge commit
Browse files Browse the repository at this point in the history
By default, the SHA that is checked out is a merge commit from the base
branch on the PR. To use the PR HEAD instead of this merge commit, we
need to explicitly specify the SHA from the event context provided by
GitHub.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
  • Loading branch information
snprajwal authored and rst0git committed Jun 8, 2023
1 parent 035d8f1 commit 18d6c79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
# Needed to rebase against the base branch
fetch-depth: 0
# Checkout pull request HEAD commit instead of merge commit
ref: ${{ github.event.pull_request.head.sha }}
- name: Configure git user details
run: |
git config --global user.email "checkpoint-restore@users.noreply.github.com"
Expand Down

0 comments on commit 18d6c79

Please sign in to comment.