Skip to content

chore(deps): bump glib from 0.21.5 to 0.22.7 in /desktop/tauri/src-tauri #1190

chore(deps): bump glib from 0.21.5 to 0.22.7 in /desktop/tauri/src-tauri

chore(deps): bump glib from 0.21.5 to 0.22.7 in /desktop/tauri/src-tauri #1190

name: Dependabot Pull Request Approve and Merge
on: pull_request
concurrency:
group: dependabot-auto-merge-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
pull-requests: write
issues: write
contents: write
repository-projects: write
jobs:
dependabot:
runs-on: ubuntu-latest
timeout-minutes: 5
# Checking the actor will prevent your Action run failing on non-Dependabot
# PRs but also ensures that it only does work for Dependabot PRs.
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
# This first step will fail if there's no metadata and so the approval
# will not occur.
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v3.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
# Here the PR gets approved.
- 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 }}
# Finally, this sets the PR to allow auto-merging for patch and minor
# updates if all checks pass. qbittorrent-api is always auto-merged
# regardless of semver level (major bumps track qBittorrent releases).
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' || contains(steps.dependabot-metadata.outputs.dependency-names, 'qbittorrent-api') }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}