feat(GHA): Renovate auto rebase after PR automerge enabled

This commit is contained in:
JJGadgets
2025-04-18 14:56:51 +08:00
parent e2f258fd4f
commit 1aff4e996a

View File

@@ -7,7 +7,7 @@ on:
workflow_dispatch:
pull_request:
types: ["auto_merge_enabled"]
branches: ["renovate/**"]
branches: ["main"]
# push:
# branches: ["renovate/**"]
@@ -18,12 +18,14 @@ concurrency:
jobs:
renovate-rebase:
name: Renovate
if: startsWith(github.event.pull_request.head.ref,'renovate/') == true
uses: JJGadgets/Biohazard/.github/workflows/renovate.yaml@main
secrets: inherit
rebase-after:
name: Rebase
runs-on: ubuntu-latest
needs: renovate-rebase
if: startsWith(github.event.pull_request.head.ref,'renovate/') == true
steps:
- name: "Generate Short Lived OAuth App Token (ghs_*)"
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0