Skip to content

Commit

Permalink
ci: replace usage of SUPPORT_TOKEN PAT (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberdvs authored Nov 16, 2023
1 parent 3edebea commit f6c1a1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
permissions:
id-token: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -30,13 +31,12 @@ jobs:
cloudfront_distribution_id: ${{ secrets.CLOUDFRONT_ID_TEST }}
cloudfront_invalidation_paths: '/preview/${{ github.event.number }}/*'
- name: Adding comment to PR with preview link and validation results
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.SUPPORT_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Check **PR ${{ github.event.number }}** preview 👀 <br> <br> [https://x.test.empathy.co/preview/${{ github.event.number }}/index.html](https://x.test.empathy.co/preview/${{ github.event.number }}/index.html) `
})
})

0 comments on commit f6c1a1f

Please sign in to comment.