Skip to content

build(deps): Bump AspNet.Security.OAuth.GitHub from 8.0.0 to 8.1.0 #525

build(deps): Bump AspNet.Security.OAuth.GitHub from 8.0.0 to 8.1.0

build(deps): Bump AspNet.Security.OAuth.GitHub from 8.0.0 to 8.1.0 #525

name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.BOT_PAT }}
- name: Add a label for content updates
if: ${{contains(steps.metadata.outputs.dependency-names, 'ContentFeedNuget')}}
run: gh pr edit "$PR_URL" --add-label "content update"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.BOT_PAT}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.BOT_PAT}}