diff options
author | Carlos Alexandro Becker <caarlos0@users.noreply.github.com> | 2024-11-07 13:28:31 -0300 |
---|---|---|
committer | Carlos Alexandro Becker <caarlos0@users.noreply.github.com> | 2024-11-07 13:28:31 -0300 |
commit | b8f99b6053741bbe4fc1a00785ad6ca01dd59be6 (patch) | |
tree | eb5896fb874e2e0ce8ccc3006d2fbbd7a842540a | |
parent | ac3f44a9dbe028c562a972b2f4e67a2aa58fa757 (diff) |
ci: update
-rw-r--r-- | .github/workflows/build.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a74cbb..5be3fe8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,3 +32,22 @@ jobs: uses: charmbracelet/meta/.github/workflows/snapshot.yml@main secrets: goreleaser_key: ${{ secrets.GORELEASER_KEY }} + + dependabot: + needs: [build] + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} + steps: + - id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - run: | + gh pr review --approve "$PR_URL" + gh pr merge --squash --auto "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |