⬆️ Bump github.com/aws/aws-sdk-go-v2/config from 1.31.16 to 1.31.17 #373
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}} |