This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Update dependency python/cpython to v3.12.2 #1421
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: Merge bot PR after CI | |
on: pull_request | |
permissions: | |
contents: write | |
pull-requests: write | |
# checks: read # For private repositories | |
# actions: read # For private repositories | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1.6.0 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- uses: actions/checkout@v4 | |
- name: Wait other jobs | |
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}} | |
uses: kachick/wait-other-jobs@v2 | |
timeout-minutes: 10 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Approve and merge | |
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}} | |
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$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: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'renovate[bot]' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Wait other jobs | |
uses: kachick/wait-other-jobs@v2 | |
timeout-minutes: 15 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Approve and merge | |
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |