chore: upgrade workflows (#453)
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped

This commit is contained in:
Libin YANG 2024-11-28 09:47:59 +08:00 committed by GitHub
parent 58b12d5fd1
commit c52593ba50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ jobs:
npm run build:h5-netlify npm run build:h5-netlify
- name: Upload dist artifact - name: Upload dist artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: dist name: dist
path: dist path: dist
@ -37,7 +37,7 @@ jobs:
- name: Upload PR number - name: Upload PR number
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: pr name: pr
path: ./pr-id.txt path: ./pr-id.txt

View File

@ -12,7 +12,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md'
steps: steps:
- name: Download PR artifact - name: Download PR artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr name: pr
@ -22,7 +22,7 @@ jobs:
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT" run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
- name: Download dist artifact - name: Download dist artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success workflow_conclusion: success
@ -35,7 +35,7 @@ jobs:
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
- name: Upload status comment - name: Upload status comment
uses: actions-cool/maintain-one-comment@v2 uses: actions-cool/maintain-one-comment@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
body: | body: |
@ -49,7 +49,7 @@ jobs:
- name: The job failed - name: The job failed
if: ${{ failure() }} if: ${{ failure() }}
uses: actions-cool/maintain-one-comment@v2 uses: actions-cool/maintain-one-comment@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
body: | body: |
@ -66,7 +66,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md'
steps: steps:
- name: Download PR artifact - name: Download PR artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr name: pr
@ -76,7 +76,7 @@ jobs:
run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT" run: echo "id=$(<pr-id.txt)" >> "$GITHUB_OUTPUT"
- name: The job failed - name: The job failed
uses: actions-cool/maintain-one-comment@v2 uses: actions-cool/maintain-one-comment@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
body: | body: |