feat(renovate): use proper gh command in rebase workflow

This commit is contained in:
JJGadgets
2025-11-26 23:36:44 +08:00
parent 3b0b4271ca
commit 6570995bea

View File

@@ -35,7 +35,7 @@ jobs:
echo "i = ${i}"
# sha=$(gh pr view ${i} --json headRefOid --jq '.headRefOid' --repo ${{ github.event.pull_request.base.repo.full_name }})
# echo "sha = ${sha}"
gh pr update-branch ${i} --repo ${{ github.event.pull_request.base.repo.full_name }}
until gh pr update-branch ${i} --repo ${{ github.event.pull_request.base.repo.full_name }}; do sleep 1; done
done
# gh api --method PUT /repos/${{ github.event.pull_request.base.repo.full_name }}/pulls/${i}/update-branch --field expected_head_sha=${sha}
@@ -45,5 +45,5 @@ jobs:
GITHUB_TOKEN: "${{ steps.oauth-token.outputs.token }}"
shell: bash
run: |
gh pr update-branch ${{ github.event.pull_request.number }} --repo ${{ github.event.pull_request.base.repo.full_name }}
until gh pr update-branch ${{ github.event.pull_request.number }} --repo ${{ github.event.pull_request.base.repo.full_name }}; do sleep 1; done
# 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=${{ github.event.pull_request.head.sha }}