From 60510c99861f1c6866689b81e07e73288eb88c08 Mon Sep 17 00:00:00 2001 From: Richard Hagen Date: Mon, 11 Dec 2023 13:22:40 +0100 Subject: [PATCH] add breaking change to swagger --- .github/workflows/pr.yaml | 2 +- swaggerui/html/swagger.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 1b2e343b..51f1b586 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -64,7 +64,7 @@ jobs: continue-on-error: true run: swagger diff --break ./swaggerui/html/swagger.json swagger.json > /tmp/swagger_breaking_changes.txt - name: Add comment - if: failure() && steps.breaking.outcome == 'failure' + if: always() # failure() && steps.breaking.outcome == 'failure' uses: mshick/add-pr-comment@v2 with: message-id: breaking-comment diff --git a/swaggerui/html/swagger.json b/swaggerui/html/swagger.json index 6872df57..8dcb2967 100644 --- a/swaggerui/html/swagger.json +++ b/swaggerui/html/swagger.json @@ -7267,7 +7267,16 @@ }, "status": { "description": "Status of the step", - "type": "number", + "type": "string", + "enum": [ + "Queued", + "Waiting", + "Running", + "Succeeded", + "Failed", + "Stopped", + "StoppedNoChanges" + ], "x-go-name": "Status", "example": "Waiting" }