Skip to content

Commit 4d1e972

Browse files
authored
fix(ci): add --repo flag to gh commands in auto-merge workflow (#174)
1 parent 5f6e90a commit 4d1e972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
if: github.event.pull_request.user.login == 'dependabot[bot]'
2121
steps:
2222
- name: Approve
23-
run: gh pr review "$PR_NUMBER" --approve
23+
run: gh pr review "$PR_NUMBER" --approve --repo "$GITHUB_REPOSITORY"
2424
env:
2525
PR_NUMBER: ${{ github.event.number }}
2626
GH_TOKEN: ${{ secrets.LOCALSTACK_BOT_TOKEN }}
2727

2828
- name: Enable auto-merge
29-
run: gh pr merge "$PR_NUMBER" --auto --squash
29+
run: gh pr merge "$PR_NUMBER" --auto --squash --repo "$GITHUB_REPOSITORY"
3030
env:
3131
PR_NUMBER: ${{ github.event.number }}
3232
GH_TOKEN: ${{ secrets.LOCALSTACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)