From 34e1a20f551a7bb27ff3982c8e114dbea7c86434 Mon Sep 17 00:00:00 2001 From: Aatman Date: Wed, 20 Sep 2023 12:40:54 +0530 Subject: [PATCH] fixes --- .../build-pr-review-both-browsers.yml | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-pr-review-both-browsers.yml b/.github/workflows/build-pr-review-both-browsers.yml index 0f04ab83..522f75c3 100644 --- a/.github/workflows/build-pr-review-both-browsers.yml +++ b/.github/workflows/build-pr-review-both-browsers.yml @@ -38,22 +38,17 @@ jobs: path: | browser-extension/plugin/extension-firefox/ browser-extension/plugin/extension-chrome/ - - - name: Echo GitHub Token - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: echo $GITHUB_TOKEN - # - name: Create PR Comment with Artifact Link - # uses: actions/github-script@v5 - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} - # script: | - # const artifact_url = `https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ github.run_id }}`; - # const comment_body = `🛠 Your build files are available [here](${artifact_url}).`; - # await github.rest.issues.createComment({ - # issue_number: context.payload.pull_request.number, - # owner: context.repo.owner, - # repo: context.repo.repo, - # body: comment_body - # }); \ No newline at end of file + - name: Create PR Comment with Artifact Link + uses: actions/github-script@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const artifact_url = `https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ github.run_id }}`; + const comment_body = `🛠 Your build files are available [here](${artifact_url}).`; + await github.rest.issues.createComment({ + issue_number: context.payload.pull_request.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: comment_body + }); \ No newline at end of file