mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
👷 Use GitHub CLI for Git authentication (#2410)
This commit is contained in:
committed by
GitHub
parent
220bcb74aa
commit
6a1c084f6e
@@ -78,11 +78,11 @@ jobs:
|
|||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
if: env.CAN_PUSH == 'true' && steps.changes.outputs.changed == 'true'
|
if: env.CAN_PUSH == 'true' && steps.changes.outputs.changed == 'true'
|
||||||
env:
|
env:
|
||||||
PR_PUSH_TOKEN: ${{ steps.pr-push.outputs.token }}
|
GH_TOKEN: ${{ steps.pr-push.outputs.token }}
|
||||||
run: |
|
run: |
|
||||||
git config user.name "pr-push[bot]"
|
git config user.name "pr-push[bot]"
|
||||||
git config user.email "pr-push[bot]@users.noreply.github.com"
|
git config user.email "pr-push[bot]@users.noreply.github.com"
|
||||||
git remote set-url origin "https://x-access-token:${PR_PUSH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
gh auth setup-git
|
||||||
git add -A
|
git add -A
|
||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
|
|||||||
Reference in New Issue
Block a user