File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 6
6
env :
7
7
TEST_TIMEOUT : 5m
8
8
EXAMPLE_TIMEOUT : 5m
9
- BRANCH : ${{ startsWith(github.head_ref, '') && github.head_ref || github.ref_name }}
9
+ BRANCH : ${{ startsWith(github.head_ref, '') && github.head_ref || github.ref_name }}
10
10
11
11
jobs :
12
12
test :
69
69
- name : Upload assets
70
70
uses : actions/upload-artifact@v4
71
71
with :
72
- name : ${{ env.BRANCH }}-assets
72
+ name : " ${{ env.BRANCH }}-assets"
73
73
path : |
74
74
*.gif
75
+
76
+ # Optional: Add PR annotation with link to artifact
77
+ - name : Comment artifact download link
78
+ if : ${{ github.event_name == 'pull_request' }}
79
+ run : |
80
+ echo "::set-output name=comment::Download the latest artifact [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
81
+ id : artifact-link
82
+ - name : Post artifact link to PR
83
+ if : ${{ github.event_name == 'pull_request' }}
84
+ uses : actions/github-script@v6
85
+ with :
86
+ script : |
87
+ github.issues.createComment({
88
+ issue_number: ${{ github.event.pull_request.number }},
89
+ owner: context.repo.owner,
90
+ repo: context.repo.repo,
91
+ body: steps.artifact-link.outputs.comment
92
+ })
You can’t perform that action at this time.
0 commit comments