From debb6fe622376378c6a34039d836899b622e4922 Mon Sep 17 00:00:00 2001 From: effoeffi Date: Mon, 11 Mar 2024 15:07:22 +0200 Subject: [PATCH] move up --- .github/workflows/test.yaml | 2 +- breaking/entrypoint.sh | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0d521fb..8e6b92d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Running breaking action with petsotre to validate no error of unable to process file command 'output' successfully and invalid value and matching delimiter not found id: test_breaking_changes_matching_delimiter_not_found - uses: oasdiff/oasdiff-action/breaking@v0.0.16 + uses: ./breaking with: base: 'specs/petstore-base.yaml' revision: 'specs/petstore-revision.yaml' diff --git a/breaking/entrypoint.sh b/breaking/entrypoint.sh index fa43720..09712ec 100755 --- a/breaking/entrypoint.sh +++ b/breaking/entrypoint.sh @@ -65,6 +65,9 @@ else breaking_changes=$(oasdiff breaking "$base" "$revision") fi +# Writes the summary to log and updates GitHub Action summary +oasdiff breaking "$base" "$revision" "$flags --format githubactions" + # *** GitHub Action step output *** # Output name should be in the syntax of multiple lines: @@ -82,10 +85,3 @@ else fi echo "$delimiter" >>"$GITHUB_OUTPUT" - -# *** END GitHub Action step output *** - -# Updating GitHub Action summary with formatted output -flags="$flags --format githubactions" -# Writes the summary to log and updates GitHub Action summary -oasdiff breaking "$base" "$revision" $flags