Backport Auth (#2936)

This commit is contained in:
Yuhong Sun 2024-10-26 13:20:02 -07:00 committed by GitHub
parent ccc68c5c34
commit b4bc6d994d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,10 @@ name: Backport on Merge
on:
pull_request:
types: [closed]
types: [closed] # Later we check for merge so only PRs that go in can get backported
permissions:
contents: write
jobs:
backport:
@ -16,8 +19,9 @@ jobs:
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Check for Backport Checkbox
id: checkbox-check