mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Fetch Repo before git checkout
This commit is contained in:
parent
60c96d8c0d
commit
4b8393320b
@ -39,6 +39,9 @@ _git_is_dirty() {
|
||||
_switch_to_branch() {
|
||||
echo "INPUT_BRANCH value: $INPUT_BRANCH";
|
||||
|
||||
# Fetch remote to make sure that repo can be switched to the right branch.
|
||||
git fetch;
|
||||
|
||||
# Switch to branch from current Workflow run
|
||||
git checkout $INPUT_BRANCH;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user