mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 10:18:27 +00:00
feat(GHA): Renovate auto rebase after PR automerge enabled
This commit is contained in:
24
.github/workflows/renovate-rebase.yaml
vendored
24
.github/workflows/renovate-rebase.yaml
vendored
@@ -35,17 +35,17 @@ jobs:
|
||||
private-key: "${{ secrets.BOT_JWT_PRIVATE_KEY }}" # $BOT_JWT_PRIVATE_KEY is generated in GitHub App main settings page, uses the X.509 private key format
|
||||
owner: "${{ github.repository_owner }}"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
token: "${{ steps.oauth-token.outputs.token }}"
|
||||
repository: "${{ github.event.pull_request.base.repo.full_name }}"
|
||||
ref: "main"
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Get latest SHA
|
||||
run: |
|
||||
echo "LATEST_MAIN_SHA=$(git rev-parse HEAD)" >> "${GITHUB_ENV}"
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
# with:
|
||||
# token: "${{ steps.oauth-token.outputs.token }}"
|
||||
# repository: "${{ github.event.pull_request.base.repo.full_name }}"
|
||||
# ref: "main"
|
||||
# fetch-depth: 1
|
||||
#
|
||||
# - name: Get latest SHA
|
||||
# run: |
|
||||
# echo "LATEST_MAIN_SHA=$(git rev-parse HEAD)" >> "${GITHUB_ENV}"
|
||||
|
||||
- name: Update branch
|
||||
env:
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
gh api --method PUT /repos/${{ github.event.pull_request.base.repo.full_name }}/pulls/${{ github.event.pull_request.number }}/update-branch \
|
||||
--field expected_head_sha=${{ env.LATEST_MAIN_SHA }}
|
||||
--field expected_head_sha=${{ github.event.pull_request.head.sha }}
|
||||
|
||||
#
|
||||
# - name: Git
|
||||
|
||||
Reference in New Issue
Block a user