diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 98138eb4e0..042ca4153a 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -19,7 +19,7 @@ jobs: - run: npm run build-only - run: node scripts/insert_snapshot_warning - run: echo ${{ github.event.number }} > out/pr.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: out path: out/ diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 40321d2e59..0b1a0bfbbd 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -27,7 +27,7 @@ jobs: node-version: lts/* use-npm-ci: true - name: 'Download artifact' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: script: | const { owner, repo } = context.repo; @@ -47,7 +47,7 @@ jobs: fs.writeFileSync('${{ github.workspace }}/out.zip', Buffer.from(download.data)); - run: unzip -o out.zip -d out - name: 'debug info' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: script: | console.log(${{ toJson(github.event) }});