build(deps): bump the go group across 1 directory with 7 updates #86
Workflow file for this run
This file contains 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 Pull Request Approve (later merge) | |
on: pull_request | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
tests_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
cache-dependency-path: ./go.sum | |
- run: make test | |
dependabot_pr: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
needs: tests_pr | |
steps: | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2.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 }} | |
# Wait with this step | |
# - name: Enable auto-merge for Dependabot PRs | |
# if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor' }} | |
# needs: dependabot_pr | |
# run: gh pr merge --auto --squash "$PR_URL" | |
# env: | |
# PR_URL: ${{ github.event.pull_request.html_url }} | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |