Fix action (#568)

Because `npm run json` does `git add`, there's nothing left in `changes`. They are in `staged changes` instead.
This commit is contained in:
nyagami
2023-08-18 01:36:46 +07:00
committed by GitHub
parent e602df44c8
commit e164a92215
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
id: json
run: |
npm run json
changes="$(git diff)"
changes="$(git diff --staged dist)"
if [ "$changes" ]
then
changes=1