Skip to content

Commit 4075840

Browse files
committed
chore: update
1 parent b7b34ae commit 4075840

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/preview-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Preview Build
22

3-
on:
3+
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

@@ -22,7 +22,7 @@ jobs:
2222
zip -r dist.zip docs-dist
2323
2424
- name: upload dist artifact
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: dist
2828
path: dist.zip
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Upload PR number
3636
if: ${{ always() }}
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: pr
4040
path: ./pr-id.txt

.github/workflows/preview-deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1313
steps:
1414
- name: download pr artifact
15-
uses: dawidd6/action-download-artifact@v2
15+
uses: dawidd6/action-download-artifact@v6
1616
with:
1717
workflow: ${{ github.event.workflow_run.workflow_id }}
1818
name: pr
@@ -22,7 +22,7 @@ jobs:
2222
run: echo "::set-output name=id::$(<pr-id.txt)"
2323

2424
- name: download dist artifact
25-
uses: dawidd6/action-download-artifact@v2
25+
uses: dawidd6/action-download-artifact@v6
2626
with:
2727
workflow: ${{ github.event.workflow_run.workflow_id }}
2828
workflow_conclusion: success
@@ -43,7 +43,7 @@ jobs:
4343
token: ${{ secrets.GITHUB_TOKEN }}
4444
body: |
4545
🎊 PR Preview has been successfully built and deployed to https://issues-helper-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
46-
46+
4747
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png">
4848
4949
<!-- Sticky Pull Request Comment -->
@@ -69,7 +69,7 @@ jobs:
6969
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
7070
steps:
7171
- name: download pr artifact
72-
uses: dawidd6/action-download-artifact@v2
72+
uses: dawidd6/action-download-artifact@v6
7373
with:
7474
workflow: ${{ github.event.workflow_run.workflow_id }}
7575
name: pr

0 commit comments

Comments
 (0)