There was an error while loading. Please reload this page.
1 parent 4e7071d commit ddc7af6Copy full SHA for ddc7af6
1 file changed
.github/workflows/release.yml
@@ -38,7 +38,9 @@ jobs:
38
- name: Check if spec changed
39
id: diff
40
run: |
41
- if git diff --quiet specs/openapi.json; then
+ OLD=$(git show HEAD:specs/openapi.json | jq -cS '{paths, components}')
42
+ NEW=$(jq -cS '{paths, components}' specs/openapi.json)
43
+ if [ "$OLD" = "$NEW" ]; then
44
echo "changed=false" >> $GITHUB_OUTPUT
45
else
46
echo "changed=true" >> $GITHUB_OUTPUT
0 commit comments