Skip to content

Commit bbe73af

Browse files
committed
ci: update commenter action setup
1 parent 020f19c commit bbe73af

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/netlify.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
jobs:
1010
Deploy:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
issues: write
1216
env:
1317
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
1418
steps:
@@ -32,6 +36,7 @@ jobs:
3236
NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME == 'master' }}
3337

3438
- uses: exercism/pr-commenter-action@v1.4.0
39+
if: ${{ github.event_name == 'pull_request' && env.NETLIFY_AUTH_TOKEN }}
3540
with:
3641
github-token: ${{ secrets.GITHUB_TOKEN }}
3742
template-variables: |

0 commit comments

Comments
 (0)