mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-06-16 16:38:51 +00:00
Pull before pushing
This commit is contained in:
parent
21109ad983
commit
7d452ae34d
@ -86,6 +86,7 @@ _push_to_github() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "::debug::Push commit to remote branch $INPUT_BRANCH"
|
echo "::debug::Push commit to remote branch $INPUT_BRANCH"
|
||||||
|
git pull origin "HEAD:$INPUT_BRANCH"
|
||||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user