Skip to content

⬆️ Bump github.com/aws/aws-sdk-go-v2/config from 1.31.16 to 1.31.17 #373

⬆️ Bump github.com/aws/aws-sdk-go-v2/config from 1.31.16 to 1.31.17

⬆️ Bump github.com/aws/aws-sdk-go-v2/config from 1.31.16 to 1.31.17 #373

name: Dependabot auto-approve
on: pull_request
permissions:
pull-requests: write
# dependabot の PR に対して動く。
# Go のパッチバージョンアップデートであれば approve して auto merge を有効にする。
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'traPtitech/piscon-portal-v2'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve and merge a PR
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$PR_URL"
if: |
contains(steps.metadata.outputs.dependency-names, 'go_modules') &&
steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}