Skip to content

Commit

Permalink
Improve bump releases actions: auto approve and automerge enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
macisamuele committed Jul 14, 2024
1 parent d2d51b4 commit fefa9ac
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/bump-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,20 @@ jobs:
title: '[Automated PR] Bump external tools (KTLint, Google Java Formatter, ktfmt, Pantlir)'
body: |
*Auto-generated* by [bump-releases](https://github.com/macisamuele/language-formatters-pre-commit-hooks/actions/workflows/bump-releases.yaml)
reviewers: macisamuele
assignees: macisamuele
branch: create-pull-request/bump-releases
delete-branch: true
draft: false
- name: Auto approve Pull Request
if: steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Automerge Pull Request
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
- name: Provide PR details
run: echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
if: success()

0 comments on commit fefa9ac

Please sign in to comment.