Skip to content

Adjust web side for new tooling changes (Key -> Keys and OrderOnPage) #737

Adjust web side for new tooling changes (Key -> Keys and OrderOnPage)

Adjust web side for new tooling changes (Key -> Keys and OrderOnPage) #737

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