Skip to content

build(deps): bump astro from 4.16.7 to 4.16.8 #262

build(deps): bump astro from 4.16.7 to 4.16.8

build(deps): bump astro from 4.16.7 to 4.16.8 #262

name: "Auto-merge PRs (updating minor or patch version) made by dependabot"
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
shell: bash
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: "${{ github.event.pull_request.html_url }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Merge a PR
shell: bash
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: "${{ github.event.pull_request.html_url }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"