From c29c0957e09bb1ad978d887bb9e89db9253e2cc5 Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Wed, 24 Nov 2021 23:41:55 +0800 Subject: [PATCH] chore: update preview workflow (#98) --- .github/workflows/preview-build.yml | 4 ++-- .github/workflows/preview-deploy.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 6fed82a..8928bd3 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -25,11 +25,11 @@ jobs: path: dist retention-days: 5 - - name: Save PR number + - name: save PR number if: ${{ always() }} run: echo ${{ github.event.number }} > ./pr-id.txt - - name: Upload PR number + - name: upload PR number if: ${{ always() }} uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index 1fbacd0..bd11003 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: - - name: download pr artifact + - name: download PR artifact uses: dawidd6/action-download-artifact@v2 with: workflow: ${{ github.event.workflow_run.workflow_id }} @@ -35,7 +35,7 @@ jobs: npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} - name: update status comment - uses: actions-cool/maintain-one-comment@v1.1.0 + uses: actions-cool/maintain-one-comment@v2 with: token: ${{ secrets.GITHUB_TOKEN }} body: | @@ -49,7 +49,7 @@ jobs: - name: The job failed if: ${{ failure() }} - uses: actions-cool/maintain-one-comment@v1.1.0 + uses: actions-cool/maintain-one-comment@v2 with: token: ${{ secrets.GITHUB_TOKEN }} body: | @@ -65,7 +65,7 @@ jobs: runs-on: ubuntu-latest if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' steps: - - name: download pr artifact + - name: download PR artifact uses: dawidd6/action-download-artifact@v2 with: workflow: ${{ github.event.workflow_run.workflow_id }}