Skip to content

fatal: Option -m cannot be combined with -c/-C/-F. #1

@ExcitedSpider

Description

@ExcitedSpider

Describe the bug

I got this following the intro in readme:

Error: Command failed: git commit -c "user.name gha-utilities" -c "user.email actions@github.com" commit -m "Updates externals" external/figma.common.json
fatal: Option -m cannot be combined with -c/-C/-F.

Detail logs can be found here

To Reproduce

    - name: Add changes to Git tracking
      run: git add -A .
      
    - name: Commit changes
      uses: gha-utilities/workspace-commit@v0.0.3
      with:
        message: Updates externals
        all: true
        
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: master

Expected behavior

Successful commit.

Screenshots

image

fix

Replace with:

- name: config commit username
   run: git config user.name myusername
  
- name: config commit email
   run: git config user.email myemail
      
- name: Commit changes
   run: git commit -m "some message"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions