Skip to content

Commit 5501693

Browse files
authored
Update dotnet.yml
1 parent 85ebfbf commit 5501693

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,15 @@ jobs:
110110
echo "${0##*/}": Pushing $package...
111111
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate
112112
done
113+
114+
dependabot:
115+
runs-on: ubuntu-latest
116+
needs: build
117+
if: success() && github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
118+
119+
steps:
120+
- name: Enable Auto-Merge for Dependabot PRs
121+
run: gh pr merge --auto --merge "$PR_URL"
122+
env:
123+
PR_URL: ${{github.event.pull_request.html_url}}
124+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)