Skip to content

Commit b109273

Browse files
committed
feat(ci): Only add a comment when the PR author has permissions
1 parent 901d948 commit b109273

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-run-applications.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ jobs:
114114
IGNORED_FAILURE: ${{needs.build.outputs.ignored_failure}}
115115
steps:
116116
- name: Write a comment
117-
if: ${{ env.IGNORED_FAILURE == 'true' }}
117+
if: |
118+
env.IGNORED_FAILURE == 'true' &&
119+
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association)
118120
uses: thollander/actions-comment-pull-request@v3
119121
with:
120122
comment-tag: build_warning_latest_failed

0 commit comments

Comments
 (0)