diff --git a/.github/workflows/res-update-game.yml b/.github/workflows/res-update-game.yml index 3e5c4ba67b..1663619270 100644 --- a/.github/workflows/res-update-game.yml +++ b/.github/workflows/res-update-game.yml @@ -38,6 +38,11 @@ jobs: git status $diff = $(git diff --numstat HEAD | findstr -i resource) + if ($LASTEXITCODE -ne 0) { + echo "no diff" + exit 0 + } + echo "diff: "$diff $sp = $($diff -split "\s+") $numbers = $($sp | Where-Object { $_ -match "^\d+$" }) @@ -56,7 +61,6 @@ jobs: } echo "isAllEqual: "$isAllEqual echo "only_sorted=$isAllEqual" >> $env:GITHUB_OUTPUT - echo "WTF??" - name: Cancelling if: steps.check_only_sorted.outputs.only_sorted == 'True'