Skip to content

Commit 3229ef5

Browse files
authored
Chore/fix workflow sha (#807)
* checkout merge commit of PR, not base branch head https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target * use link to test result, gif exceeds github allowed content length
1 parent 20a3202 commit 3229ef5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
options: --user root
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
ref: '${{ github.event.pull_request.merge_commit_sha }}' # since event is pull_request_target
1517
- name: Install Packages
1618
run: yarn install --frozen-lockfile
1719
- name: Build
@@ -35,4 +37,4 @@ jobs:
3537
- name: Show URL
3638
run: echo '${{ steps.upload.outputs.file-url }}'
3739
id: artifact-upload-step
38-
- run: echo '![test](${{ steps.upload.outputs.file-url }})' >> $GITHUB_STEP_SUMMARY
40+
- run: echo '<picture><img src="${{ steps.upload.outputs.file-url }}"></picture>' >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)