Closed norman-zon closed 2 years ago
I'v never seen absolute paths declared with a colon (:
) at the beginning.
I've known absolute paths to begin with a slash /
.
If you only want to update the README, the following pattern should work for you.
file_pattern: 'shared_infra/README.md'
Sorry, I thought :/
was a magic signature for the git repo root. Looks like this is not the case.
file_pattern: 'shared_infra/README.md'
works. Sorry again, for the noise.
Version of the Action
v4.14.1
Describe the bug Setting
file_pattern
to an absolute path does not work as expected.To Reproduce Steps to reproduce the behavior: 1) Set
file_pattern
to an absolute path of a single file 2) Modify this file and other file(s) 3) All files get addedExpected behavior Only the the specified file gets added and commited.
Used Workflow
Additional context
The log of the action run:
I looked at the code of the action and the
_add_files
function is so straightforward, I have no clue why it would not work as expected.