From ac298e5ff4d10e39a7b398916958ac2592a5d277 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Mon, 19 Feb 2024 16:26:45 +0000 Subject: [PATCH] unstage husky and node_modules --- .github/workflows/plugin-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/plugin-build.yml b/.github/workflows/plugin-build.yml index 9acc643..538517c 100644 --- a/.github/workflows/plugin-build.yml +++ b/.github/workflows/plugin-build.yml @@ -43,8 +43,8 @@ jobs: run: | git checkout -b main-built git add -A # Stage all changes, including untracked files - git reset -- .husky/ # Unstage the .husky directory - git reset -- node_modules/ # Unstage the node_modules directory + git rm --cached -r .husky || true + git rm --cached -r node_modules || true git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index git commit -m "Built WordPress plugin" git push origin main-built