Skip to content

Make the action only commit new, untracked files #338

Answered by stefanzweifel
jj-lucas asked this question in Help
Discussion options

You must be logged in to vote

This isn't easily doable with git-auto-commit as - as far as I know – there is no option/flag for this built in into git-status, git-add or git-commit.

What you could do is run the following script in your action instead of using git-auto-commit.

git ls-files --others --exclude-standard | xargs git add
git commit -m "Add untracked files"
git push origin

You would have to add any missing git-commands yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jj-lucas
Comment options

Answer selected by jj-lucas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants