Skip to content

v7.1.2 doesn't parse --file=message.txt kind of tag argument correctly #179

@ruohola

Description

@ruohola

When using:

uses: EndBug/add-and-commit@v7
with:
  tag: 'v1.0.0 --annotate --file=message.txt'

the last argument gets parsed as --file =message.txt, when it should be parsed to just --file=message.txt.

This results in the following error:

> Tagging commit...
##[error]Error: fatal: could not open or read '=message.txt': No such file or directory

##[error]Error: fatal: could not open or read '=message.txt': No such file or directory

> Pushing commit to repo...

Demo of the buggy parsing

Caused by #174 which fixed another bug and created this regression.

Metadata

Metadata

Assignees

Labels

type: bugVerified problems that need to be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions