Skip to content

Commit

Permalink
feat: github action shows comment on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmanvaidya committed Oct 27, 2023
1 parent c54490b commit 0b489c1
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/build-pr-review-both-browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ permissions:
actions: write
issues: write
pull-requests: write
contents: write
repository-projects: write

jobs:
chrome-publish:
Expand Down Expand Up @@ -52,19 +50,10 @@ jobs:
browser-extension/plugin/extension-firefox/
browser-extension/plugin/extension-chrome/
# - name: Debug GitHub Token Permissions
# run: echo ${{ secrets.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: "test"
uses: thollander/actions-comment-pull-request@v2
with:
message: |
🛠 Your build files are available [here](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ github.run_id }})
comment_tag: execution
mode: recreate

0 comments on commit 0b489c1

Please sign in to comment.