Skip to content

Commit ddc7af6

Browse files
committed
ci: diff only paths and components for release gate
1 parent 4e7071d commit ddc7af6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
- name: Check if spec changed
3939
id: diff
4040
run: |
41-
if git diff --quiet specs/openapi.json; then
41+
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
4244
echo "changed=false" >> $GITHUB_OUTPUT
4345
else
4446
echo "changed=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)