Skip to content

Commit

Permalink
Only auto merge on the main repo (#6379)
Browse files Browse the repository at this point in the history
The automerge bot for dependabot PRs has been running on forks as well as the main repo. That makes syncing forks with the main repo much more difficult.

So, follow the practice from dotnet/docs and only merge on the main repo.
  • Loading branch information
BillWagner authored Nov 16, 2023
1 parent 19e8c4e commit ec72cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-approve-and-automerge.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.actor == 'dependabot[bot]' }}
if: ${{ github.actor == 'dependabot[bot]' && github.repository_owner == 'dotnet' }}
steps:
- name: Dependabot metadata
id: metadata
Expand Down

0 comments on commit ec72cc1

Please sign in to comment.