Skip to content

Commit 0505d9b

Browse files
committed
4881: Fix Unrecognized option: --fail-on-changes
1 parent c240743 commit 0505d9b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/api-spec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
ref: ${{ github.head_ref }}
4747
path: head
4848

49-
- name: Run OpenAPI Changes (from HEAD rev)
50-
id: api-changes
49+
- name: Run OpenAPI Changed (from HEAD rev)
50+
id: api-changed
5151
continue-on-error: true
5252
uses: docker://openapitools/openapi-diff:latest
5353
with:
54-
args: --fail-on-changes base/public/spec.yaml head/public/spec.yaml --markdown api-spec-changes.md
54+
args: --fail-on-changed base/public/spec.yaml head/public/spec.yaml --markdown api-spec-changed.md
5555

5656
- name: Run OpenAPI Incompatible (from HEAD rev)
5757
id: api-incompatible
@@ -63,26 +63,26 @@ jobs:
6363
- name: Debug outcomes
6464
if: always()
6565
run: |
66-
echo "api-changes outcome: ${{ steps.api-changes.outcome }}"
66+
echo "api-changed outcome: ${{ steps.api-changed.outcome }}"
6767
echo "api-incompatible outcome: ${{ steps.api-incompatible.outcome }}"
6868
6969
- name: Comment PR with no changes
70-
if: steps.api-changes.outcome == 'success' && steps.api-incompatible.outcome == 'success'
70+
if: steps.api-changed.outcome == 'success' && steps.api-incompatible.outcome == 'success'
7171
working-directory: head
7272
env:
7373
GH_TOKEN: ${{ github.token }}
7474
run: |
7575
gh pr comment ${{ github.event.pull_request.number }} --body "✅ **No changes detected in API specification**" --create-if-none --edit-last
7676
7777
- name: Comment PR with non-breaking changes
78-
if: steps.api-changes.outcome == 'failure' && steps.api-incompatible.outcome == 'success'
78+
if: steps.api-changed.outcome == 'failure' && steps.api-incompatible.outcome == 'success'
7979
working-directory: head
8080
env:
8181
GH_TOKEN: ${{ github.token }}
8282
run: |
8383
echo "## ⚠️ Non-Breaking changes detected in API specification" > ../comment.md
8484
echo "" >> ../comment.md
85-
cat ../api-spec-changes.md >> ../comment.md
85+
cat ../api-spec-changed.md >> ../comment.md
8686
gh pr comment ${{ github.event.pull_request.number }} --body-file ../comment.md --create-if-none --edit-last
8787
8888
- name: Comment PR with breaking changes

0 commit comments

Comments
 (0)