Skip to content

Commit

Permalink
Auto merge renovatebot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 28, 2024
1 parent 470222f commit 1ec8c15
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/merge-bot-pr.yml
Original file line number Diff line number Diff line change
@@ -23,11 +23,34 @@ jobs:
timeout-minutes: 10
- name: Approve and merge
if: ${{ (steps.metadata.outputs.update-type != 'version-update:semver-major') || contains(steps.metadata.outputs.dependency-names, 'DeterminateSystems') }}
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$PR_URL"
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# Avoid `automerge` renovate official feature.
# It wait longtime to be merged.
# Avoid `platformAutomerge` renovate official feature.
# It requires many changes in GitHub settings.
# - `Allow auto-merge`
# - `Require status checks to pass before merging` and specify the status names
# Changing in all personal repository is annoy task for me. Even if using terrafform, getting mandatory CI names in each repo is too annoy!
renovate:
timeout-minutes: 30
runs-on: ubuntu-24.04
if: ${{ github.actor == 'renovate[bot]' }}
steps:
- name: Wait other jobs
uses: kachick/wait-other-jobs@v3
with:
skip-same-workflow: 'true'
timeout-minutes: 10
- name: Approve and merge
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ github.token }}

# https://github.com/kachick/anylang-template/issues/51
selfup-runner:
timeout-minutes: 30

0 comments on commit 1ec8c15

Please sign in to comment.