Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmanvaidya committed Sep 20, 2023
1 parent 744ee4c commit 34e1a20
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/build-pr-review-both-browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# });
- 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
});

0 comments on commit 34e1a20

Please sign in to comment.