diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index ae7b94fc181..a17490c499e 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -43,10 +43,10 @@ jobs: }); const fs = require('fs'); fs.writeFileSync('${{ github.workspace }}/out.zip', Buffer.from(download.data)); + console.log('::debug::${{ toJson(github.event) }}'); - run: unzip -o out.zip - run: node scripts/publish-preview env: CI_PREVIEW_TOKEN: ${{ secrets.CI_PREVIEW_TOKEN }} - PULL_REQUEST: ${{ github.event.workflow_run.outputs.pr }} - GITHUB_SHA: ${{ github.event.workflow_run.outputs.sha }} - + PULL_REQUEST: ${{ github.event.workflow_run.pull_requests.0.number }} + GITHUB_SHA: ${{ github.event.workflow_run.head_commit.id }}