Skip to content

Feat: Page Indicator (v1) #740

Feat: Page Indicator (v1)

Feat: Page Indicator (v1) #740

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}}