Update workflow to allow the workflow to write (#6975)

* Update the workflow to allow the action to write our branches from it.
* Also added username and email as git by default will want to know who
  is performing the action (edge case). Using github actions bot is
standard practice
This commit is contained in:
Jake Jackson 2025-06-11 16:07:38 -04:00 committed by GitHub
parent f1e5cadce7
commit ee19ee0c10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,8 @@ on:
jobs:
rebase:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout release_4.6-next Branch
uses: actions/checkout@v4
@ -23,6 +25,8 @@ jobs:
- name: Attempt Rebase
id: rebase_attempt # Give this step an something to reference its outcome
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout release_4.6-next
# Attempt the rebase.
# The '|| true' allows the script to continue even if rebase fails,