Commit d4592efc authored by Muyang Li's avatar Muyang Li
Browse files

chore: use the merged commit

parent 12918fa0
...@@ -30,7 +30,8 @@ jobs: ...@@ -30,7 +30,8 @@ jobs:
id: set-ref id: set-ref
run: | run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "ref=${{ github.event.pull_request.head.ref }}" >> $GITHUB_OUTPUT # Use the merged commit SHA for PRs
echo "ref=${{ github.event.pull_request.merge_commit_sha }}" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then elif [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
# Use github.event.client_payload.ref if provided, else default to main # Use github.event.client_payload.ref if provided, else default to main
if [[ -n "${{ github.event.client_payload.ref }}" ]]; then if [[ -n "${{ github.event.client_payload.ref }}" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment