Skip to content

Commit 6c13e81

Browse files
committed
feat: add pull before pushing to avoid error with remote with new changes
1 parent 853653f commit 6c13e81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ cz bump --yes $INPUT_DRY_RUN $INPUT_CHANGELOG $INPUT_PRERELEASE
3535

3636
echo "Pushing to branch..."
3737
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${REPOSITORY}.git"
38+
git pull ${remote_repo} ${INPUT_BRANCH}
3839
git push "${remote_repo}" HEAD:${INPUT_BRANCH} --follow-tags --tags;
3940

4041
echo "Done."

0 commit comments

Comments
 (0)