Open nicholas-cwb opened 11 months ago
I've also had this issue. This is because the action script does not handle untracked
files in any way. I guess if we added something like this, it would work.
# handle untracked (??):
[[ "$tree_status" == "?" && "$index_status" == "?" ]] && adds+=("$filename")
But I'm not sure if that would break anything. Maybe it was omitted intentionally for some reason. @joemiller is there any chance you could take a look at this when you have time?
Unless I am misunderstanding something, would this be as easy as staging the changes with this step?
If anyone is willing to submit a PR with a proposed fix + bats test case I would be happy to review it.
When I open a PR from feat branch to main, github action will run. I can see the files changed but during the autocommit stage I get the following.
My github action:
Somehow it detectes the filename but index and tree status is
?
My repository is private under an organization. Any possible rootcause to this behavior? Maybe some organization github enterprise repository setting that is might contribute to this issue.I chanced upon this article https://groups.google.com/g/git-for-windows/c/TdM_VLjK8AA regarding git config -global -add safe.directory "$GITHUB_WORKSPACE" line in the action shell script. Maybe it is related to the issue.