Skip to content

create_branch should be for remote only #295

@mvorisek

Description

@mvorisek

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: bot@example.com
        commit_author: Bot <bot@example.com>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv6

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions