mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-22 16:16:08 +08:00
Use git checkout
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -eu
|
||||
|
||||
# Switch to branch from current Workflow run
|
||||
git switch "${GITHUB_REF:11}"
|
||||
git checkout "${GITHUB_REF:11}"
|
||||
|
||||
# Set origin URL
|
||||
git remote set-url origin https://$TOKEN:x-oauth-basic@github.com/$GITHUB_REPOSITORY
|
||||
|
Reference in New Issue
Block a user