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