Skip to content

Commit 1f087ec

Browse files
authored
🐛 Fix pull request author check in auto-approve workflow (#143)
1 parent a9e02dd commit 1f087ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pr_autoapprove.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ jobs:
1010
permissions:
1111
pull-requests: write
1212
if: >
13-
github.event.pull_request.base.ref ==
14-
github.event.repository.default_branch &&
13+
github.event.pull_request.base.ref == github.event.repository.default_branch &&
1514
contains(
1615
format(',{0},', vars.AUTO_APPROVE_ACTORS),
17-
format(',{0},', github.actor_id)
16+
format(',{0},', github.event.pull_request.user.id)
1817
)
1918
steps:
2019
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0

0 commit comments

Comments
 (0)