Skip to content

Commit 94e7cfb

Browse files
jimisolaJimisola Laursen
andauthored
ci: fix renovate approve condition to check PR author (#144)
github.actor reflects who triggered the event (e.g. a human reopening the PR), not who authored it. Use github.event.pull_request.user.login in the caller to correctly identify Renovate-authored PRs regardless of who triggers the workflow. Signed-off-by: jimisola <jimisola@jimisola.com> Co-authored-by: Jimisola Laursen <jimisola.laursen@resurs.se>
1 parent 9c9d698 commit 94e7cfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/renovate-approve.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ on:
88

99
jobs:
1010
approve:
11+
if: github.event.pull_request.user.login == 'renovate[bot]'
1112
uses: reqstool/.github/.github/workflows/renovate-approve.yml@main

0 commit comments

Comments
 (0)