Create a new commit to preserve history from main (#6019)
This commit is contained in:
2
.github/workflows/update-e2e-branch.yml
vendored
2
.github/workflows/update-e2e-branch.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
# Get a new SHA to prevent overwriting the commit status on main
|
# Get a new SHA to prevent overwriting the commit status on main
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git commit --amend --message="[all-e2e] $(git log --max-count=1 --pretty=%B)"
|
git commit --allow-empty --message="[all-e2e] $(git log --max-count=1 --pretty=%B)"
|
||||||
|
|
||||||
# Overwrite the branch
|
# Overwrite the branch
|
||||||
git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository }}.git
|
git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository }}.git
|
||||||
|
Reference in New Issue
Block a user