Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
d4592efc
Commit
d4592efc
authored
Jul 26, 2025
by
Muyang Li
Browse files
chore: use the merged commit
parent
12918fa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
.github/workflows/pr-test.yaml
.github/workflows/pr-test.yaml
+2
-1
No files found.
.github/workflows/pr-test.yaml
View file @
d4592efc
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment