git-auto-commit Version
4.16.0 / latest
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref || github.ref_name }}.changes
# create_branch: true
push_options: '--force'
commit_message: Unit Changes
commit_user_name: Bot
commit_user_email: [email protected]
commit_author: Bot <[email protected]>
cannot force push the remote branch even if it exists remotely
Expected behaviout
Notice, the create_branch option in the repro above is commented/disabled. When enabled, all works as expected.
create_branch should apply for remote branch creation only. In CI, an option for creating local branch has almost no sense. The important thing is if the branch is existing on the remote or not.
git-auto-commit Version
4.16.0 / latest
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
cannot force push the remote branch even if it exists remotely
Expected behaviout
Notice, the
create_branchoption in the repro above is commented/disabled. When enabled, all works as expected.create_branchshould apply for remote branch creation only. In CI, an option for creating local branch has almost no sense. The important thing is if the branch is existing on the remote or not.