Skip to content

Bump octokit from 8.1.0 to 9.2.0 #150

Bump octokit from 8.1.0 to 9.2.0

Bump octokit from 8.1.0 to 9.2.0 #150

name: "Dependabot auto approve and merge"
on:
pull_request:
branches:
- master
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve and Enable auto-merge for Dependabot PRs
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: |
gh pr review --approve "$PR_URL" -b "@dependabot merge"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.SB_SILVERSMITHS_BOT}}