Skip to content

build: bump dependabot/fetch-metadata from 2.5.0 to 3.0.0 #464

build: bump dependabot/fetch-metadata from 2.5.0 to 3.0.0

build: bump dependabot/fetch-metadata from 2.5.0 to 3.0.0 #464

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'README.md'
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Docker Build
run: DOCKER_BUILDKIT=1 docker build .
ci-dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
needs: CI
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v3.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}