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:
@@ -32,7 +32,7 @@ jobs:
|
||||
id: json
|
||||
run: |
|
||||
npm run json
|
||||
changes="$(git diff)"
|
||||
changes="$(git diff --staged dist)"
|
||||
if [ "$changes" ]
|
||||
then
|
||||
changes=1
|
||||
|
||||
Reference in New Issue
Block a user