Skip to content

Commit aff8d7a

Browse files
committed
Add git fetch --all to spring-finalize-release.yml
Sometimes commits may happen into a branch we are releasing against in between build, deploy and this finalizer where we push release tag and two commits for the released and next development versions Observed a failure like this: ``` ! [rejected] 3.3.x -> 3.3.x (fetch first) error: failed to push some refs to 'https://github.com/spring-projects/spring-kafka' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to hint: the same ref. If you want to integrate the remote changes, use hint: 'git pull' before pushing again. ```
1 parent 2d3f949 commit aff8d7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/spring-finalize-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
6363
NEXT_VERSION=${NEXT_VERSION}-SNAPSHOT
6464
65+
git fetch --all
6566
git pull origin ${{ github.ref }}
6667
6768
if test -f pom.xml

0 commit comments

Comments
 (0)