Skip to content

dependabot: bump gorm.io/driver/postgres from 1.5.8 to 1.5.9 #31

dependabot: bump gorm.io/driver/postgres from 1.5.8 to 1.5.9

dependabot: bump gorm.io/driver/postgres from 1.5.8 to 1.5.9 #31

name: merge_dependabot_pr
on:
pull_request:
branches:
- 'main'
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.DEPENDABOT_GITHUB_TOKEN }}"
- name: Approve dependabot PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_GITHUB_TOKEN }}
- name: Merge dependabot PR
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.DEPENDABOT_GITHUB_TOKEN}}