Skip to content

Commit

Permalink
CI: Fix dependabot
Browse files Browse the repository at this point in the history
#### Problem

The dependabot job runs on the exact repo, which works, but might be
error-prone if we copy the file.

#### Summary of changes

Since this is a bit error-prone, use the `repository_owner` instead.
  • Loading branch information
joncinque committed Dec 18, 2024
1 parent 50f67e2 commit 335cec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'solana-program/stake-pool'
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository_owner == 'solana-program'
steps:
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
Expand Down

0 comments on commit 335cec5

Please sign in to comment.