mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Merge pull request #21625 from BerriAI/fix/regenerate-lock-drop-pat-approval
fix(ci): drop PAT_TOKEN_2 approval, use github.token for auto-merge
This commit is contained in:
commit
30a6b18c0d
1 changed files with 4 additions and 7 deletions
11
.github/workflows/regenerate-poetry-lock.yml
vendored
11
.github/workflows/regenerate-poetry-lock.yml
vendored
|
|
@ -13,7 +13,7 @@ on:
|
|||
|
||||
permissions:
|
||||
contents: write # needed to push the auto/regenerate-poetry-lock-* branch
|
||||
pull-requests: write # needed to open and approve the PR
|
||||
pull-requests: write # needed to open the PR and enable auto-merge
|
||||
|
||||
jobs:
|
||||
regenerate-lock:
|
||||
|
|
@ -72,12 +72,9 @@ jobs:
|
|||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Approve and enable auto-merge
|
||||
- name: Enable auto-merge
|
||||
if: steps.diff.outputs.changed == 'true'
|
||||
run: |
|
||||
# Approve with PAT_TOKEN_2 (a different identity from the creator,
|
||||
# since GitHub does not allow a token to approve its own PR).
|
||||
gh pr review "${{ steps.open-pr.outputs.pr_url }}" --approve
|
||||
gh pr merge "${{ steps.open-pr.outputs.pr_url }}" --auto --squash
|
||||
gh pr merge "${{ steps.open-pr.outputs.pr_url }}" --auto --squash
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PAT_TOKEN_2 }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue