From e164a92215d139abaa390cbd3cb4b5783c2f5940 Mon Sep 17 00:00:00 2001 From: nyagami Date: Fri, 18 Aug 2023 01:36:46 +0700 Subject: [PATCH] Fix action (#568) Because `npm run json` does `git add`, there's nothing left in `changes`. They are in `staged changes` instead. --- .github/workflows/updatejson.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/updatejson.yml b/.github/workflows/updatejson.yml index 3e660af..8097fe7 100644 --- a/.github/workflows/updatejson.yml +++ b/.github/workflows/updatejson.yml @@ -32,7 +32,7 @@ jobs: id: json run: | npm run json - changes="$(git diff)" + changes="$(git diff --staged dist)" if [ "$changes" ] then changes=1