From 58358cb92ac586fb37c6b7422a4c3261824137fd Mon Sep 17 00:00:00 2001 From: Miles Petrov Date: Mon, 9 Sep 2024 11:39:15 -0400 Subject: [PATCH] Fix pull request comment workflow --- .github/workflows/demo-pr-links.yml | 37 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/demo-pr-links.yml b/.github/workflows/demo-pr-links.yml index 357bae50a22..9d83b4faeb4 100644 --- a/.github/workflows/demo-pr-links.yml +++ b/.github/workflows/demo-pr-links.yml @@ -1,26 +1,25 @@ name: PR Commenter on: - pull_request: - types: [opened] + pull_request_target: + types: [opened] jobs: - comment-on-pr: - runs-on: ubuntu-latest - steps: - - name: Comment on the PR - uses: peter-evans/create-or-update-comment@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.pull_request.number }} - body: | - Your demo site is ready! 🚀 + comment-on-pr: + runs-on: ubuntu-latest + steps: + - name: Comment on the PR + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + Your demo site is ready! 🚀 - Enhanced Testing: - Samples: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/enhanced-samples.html - Catalogue: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/enhanced-all.html + Enhanced Testing: + Samples: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/enhanced-samples.html + Catalogue: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/enhanced-all.html - Legacy Testing: - Main: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/ - Catalogue: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/index-all.html - Samples: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/index-samples.html + Legacy Testing: + Main: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/ + Catalogue: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/index-all.html + Samples: https://${{github.event.pull_request.user.login}}.github.io/ramp4-pcar4/${{github.head_ref}}/demos/index-samples.html