diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad98e32da00..91c6379d1af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: - name: '[PR Preview] Upload dist folder' if: ${{github.event_name == 'pull_request' && matrix.node-version.isLatest}} - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: dist path: | @@ -52,7 +52,7 @@ jobs: - name: '[PR Preview] Upload PR metadata' if: ${{github.event_name == 'pull_request' && matrix.node-version.isLatest}} - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: pr_metadata path: ./pr_metadata.ini diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 58f98ee4db2..aa1d4e33849 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -25,7 +25,7 @@ jobs: - run: npm clean-install - name: Download all artifacts (dist folder and pr_metadata) - uses: dawidd6/action-download-artifact@v19 + uses: dawidd6/action-download-artifact@v21 with: github_token: ${{secrets.GITHUB_TOKEN}} run_id: ${{github.event.workflow_run.id}} @@ -42,7 +42,7 @@ jobs: run: ./node_modules/.bin/netlify deploy --no-build --dir=. --alias=pr-${{steps.pr_metadata.outputs.pr}} - name: Run afterDeploy script - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const { afterDeploy } = await import('${{github.workspace}}/scripts/pr_preview.js');