mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
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:
4
.github/workflows/feature_branch_sync.yml
vendored
4
.github/workflows/feature_branch_sync.yml
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user