Alternative approach to bump up version No. on dev: avoid --force push
@@ -55,7 +55,14 @@ jobs:
git commit -m "Bump version number [ci skip]" -a
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
- git push "${remote_repo}" release:release release:dev --force
+ echo "${remote_repo}"
+ # Commit version bump to release
+ git push "${remote_repo}" release
+ # Commit version bump to dev
+ git checkout dev
+ git merge release
+ git push "${remote_repo}" dev
+ # git push "${remote_repo}" release:release release:dev --force
# - name: Push changes
# uses: ad-m/github-push-action@master
