diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index f05cd48..43b614a 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -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 @@ -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 diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index 1ea5b75..8b1771f 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -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 @@ -22,7 +22,7 @@ jobs: run: echo "id=$(> "$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 @@ -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: | @@ -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: | @@ -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 @@ -76,7 +76,7 @@ jobs: run: echo "id=$(> "$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: |