Skip to content

Commit 5a22e4b

Browse files
committed
Fix automation pull request author check
1 parent a131b2d commit 5a22e4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/merge-automation-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
3535
run: |
3636
pull_request=$(gh pr view "$HEAD_BRANCH" --repo "$GITHUB_REPOSITORY" --json number,headRefOid,author,baseRefName,state)
37-
test "$(jq -r '.author.login' <<<"$pull_request")" = "${APP_SLUG}[bot]"
37+
test "$(jq -r '.author.login' <<<"$pull_request")" = "app/${APP_SLUG}"
3838
test "$(jq -r '.baseRefName' <<<"$pull_request")" = main
3939
test "$(jq -r '.state' <<<"$pull_request")" = OPEN
4040
test "$(jq -r '.headRefOid' <<<"$pull_request")" = "$HEAD_SHA"

0 commit comments

Comments
 (0)