diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index d40b7ab..c9dfe53 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -14,9 +14,7 @@ jobs: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' - permissions: - issues: write - deployments: write + permissions: write-all steps: - name: Download artifact @@ -50,7 +48,6 @@ jobs: directory: build gitHubToken: ${{ secrets.GITHUB_TOKEN }} # GitHub Deployments wranglerVersion: "3" - - name: "Comment on PR" uses: actions/github-script@v3 with: @@ -67,4 +64,5 @@ jobs: }); } catch (err) { console.log(err); + process.exit(1); }