File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Preview Build
2
2
3
- on :
3
+ on :
4
4
pull_request :
5
5
types : [opened, synchronize, reopened]
6
6
22
22
zip -r dist.zip docs-dist
23
23
24
24
- name : upload dist artifact
25
- uses : actions/upload-artifact@v2
25
+ uses : actions/upload-artifact@v4
26
26
with :
27
27
name : dist
28
28
path : dist.zip
34
34
35
35
- name : Upload PR number
36
36
if : ${{ always() }}
37
- uses : actions/upload-artifact@v2
37
+ uses : actions/upload-artifact@v4
38
38
with :
39
39
name : pr
40
40
path : ./pr-id.txt
Original file line number Diff line number Diff line change 12
12
if : github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
13
13
steps :
14
14
- name : download pr artifact
15
- uses : dawidd6/action-download-artifact@v2
15
+ uses : dawidd6/action-download-artifact@v6
16
16
with :
17
17
workflow : ${{ github.event.workflow_run.workflow_id }}
18
18
name : pr
22
22
run : echo "::set-output name=id::$(<pr-id.txt)"
23
23
24
24
- name : download dist artifact
25
- uses : dawidd6/action-download-artifact@v2
25
+ uses : dawidd6/action-download-artifact@v6
26
26
with :
27
27
workflow : ${{ github.event.workflow_run.workflow_id }}
28
28
workflow_conclusion : success
43
43
token : ${{ secrets.GITHUB_TOKEN }}
44
44
body : |
45
45
🎊 PR Preview has been successfully built and deployed to https://issues-helper-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
46
-
46
+
47
47
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png">
48
48
49
49
<!-- Sticky Pull Request Comment -->
69
69
if : github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
70
70
steps :
71
71
- name : download pr artifact
72
- uses : dawidd6/action-download-artifact@v2
72
+ uses : dawidd6/action-download-artifact@v6
73
73
with :
74
74
workflow : ${{ github.event.workflow_run.workflow_id }}
75
75
name : pr
You can’t perform that action at this time.
0 commit comments