Skip to content

Commit

Permalink
chore: upgrade workflows (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme authored Nov 28, 2024
1 parent 58b12d5 commit c52593b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
npm run build:h5-netlify
- name: Upload dist artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Upload PR number
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr-id.txt
12 changes: 6 additions & 6 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md'
steps:
- name: Download PR artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand All @@ -22,7 +22,7 @@ jobs:
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"

- name: Download dist artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
Expand All @@ -35,7 +35,7 @@ jobs:
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
- name: Upload status comment
uses: actions-cool/maintain-one-comment@v2
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand All @@ -49,7 +49,7 @@ jobs:

- name: The job failed
if: ${{ failure() }}
uses: actions-cool/maintain-one-comment@v2
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand All @@ -66,7 +66,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md'
steps:
- name: Download PR artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand All @@ -76,7 +76,7 @@ jobs:
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"

- name: The job failed
uses: actions-cool/maintain-one-comment@v2
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Expand Down

0 comments on commit c52593b

Please sign in to comment.