From 7d4939bf14f5b8e790b0c6232801ec61c371f476 Mon Sep 17 00:00:00 2001 From: creyD Date: Fri, 19 Feb 2021 19:09:45 +0100 Subject: [PATCH] Another try at bugfixing the ignore mechanism --- entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8dc8c5f..978dce1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -60,9 +60,8 @@ echo "Files:" prettier $INPUT_PRETTIER_OPTIONS || echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS" # Ignore node modules and other action created files -echo "package_lock.json -node_modules/ -" >> .gitignore +git update-index --skip-worktree package_lock.json +git update-index --skip-worktree node_modules/ # To keep runtime good, just continue if something was changed if _git_changed; then @@ -83,7 +82,6 @@ if _git_changed; then # Add changes to git git add "${INPUT_FILE_PATTERN}" || echo "Problem adding your files with pattern ${INPUT_FILE_PATTERN}" fi - git rm .gitignore # Commit and push changes back if $INPUT_SAME_COMMIT; then