Skip to content

Commit 1387d7c

Browse files
authored
Bot: provide negative response if the user has no permission (#1069)
1 parent 2752b4e commit 1387d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update_galata_references.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
if: |
3636
!contains(fromJSON('["OWNER","COLLABORATOR","MEMBER"]'), steps.association.outputs.association)
3737
run: |
38+
gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=-1'
3839
echo "User not authorized to update snapshots"
3940
exit 1
4041
41-
- name: React to the triggering comment
42+
- name: React positively to the triggering comment
4243
run: |
4344
gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=+1'
4445
env:

0 commit comments

Comments
 (0)