From b888e81bea069c5fae537c9b2f509ae44cbe10e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:55:48 +0000 Subject: [PATCH] Allow owners/members/collaborators to update snapshots on PRs of outside contributors --- .../{% if test %}update-integration-tests.yml{% endif %} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template/.github/workflows/{% if test %}update-integration-tests.yml{% endif %} b/template/.github/workflows/{% if test %}update-integration-tests.yml{% endif %} index 1cae0ed..68a4168 100644 --- a/template/.github/workflows/{% if test %}update-integration-tests.yml{% endif %} +++ b/template/.github/workflows/{% if test %}update-integration-tests.yml{% endif %} @@ -14,7 +14,10 @@ jobs: ( github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'COLLABORATOR' || - github.event.issue.author_association == 'MEMBER' + github.event.issue.author_association == 'MEMBER' || + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'MEMBER' ) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') runs-on: ubuntu-latest