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
This commit is contained in:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -12,6 +12,8 @@ jobs:
|
|||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: '${{ github.event.pull_request.merge_commit_sha }}' # since event is pull_request_target
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -35,4 +37,4 @@ jobs:
|
|||||||
- name: Show URL
|
- name: Show URL
|
||||||
run: echo '${{ steps.upload.outputs.file-url }}'
|
run: echo '${{ steps.upload.outputs.file-url }}'
|
||||||
id: artifact-upload-step
|
id: artifact-upload-step
|
||||||
- run: echo '' >> $GITHUB_STEP_SUMMARY
|
- run: echo '<picture><img src="${{ steps.upload.outputs.file-url }}"></picture>' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|||||||
Reference in New Issue
Block a user