Skip to content

Commit

Permalink
Use correct commit range for GitHub Actions (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong authored Dec 31, 2024
1 parent a346117 commit 9787b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci-info
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ elif [ -n "$GITHUB_HEAD_REF" ] ; then
# GitHub Actions pull request (no special handling is required for non-PR GitHub Actions jobs).
CI_IS_PULL_REQUEST=true
CI_BRANCH_NAME="${GITHUB_HEAD_REF}"
CI_COMMIT_RANGE_START=$(git rev-parse "${GITHUB_BASE_REF}")
CI_COMMIT_RANGE_END=$(git rev-parse "${GITHUB_HEAD_REF}")
CI_COMMIT_RANGE_START=$(git rev-parse "remotes/origin/${GITHUB_BASE_REF}")
CI_COMMIT_RANGE_END=$(git rev-parse "remotes/pull/${GITHUB_REF_NAME}")
CI_COMMIT_RANGE="${CI_COMMIT_RANGE_START}...${CI_COMMIT_RANGE_END}"

else
Expand Down

0 comments on commit 9787b17

Please sign in to comment.