From 1af0cba2661784c5728a0f49ff0c334e0238e006 Mon Sep 17 00:00:00 2001 From: Reuven Date: Thu, 4 Jul 2024 17:46:57 +0300 Subject: [PATCH] compare to prev version --- .github/workflows/bc.yml | 5 ++++- simple.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index cb35740..f6310f1 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -18,6 +18,9 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Get prev commit + run: echo "PREV_COMMIT=$(git --no-pager log -n1 | grep commit | cut -d' ' -f2)" >> $GITHUB_ENV + - name: Run diff - run: docker run --rm -t -v $(pwd)/:/data:ro tufin/oasdiff changelog https://raw.githubusercontent.com/reuvenharrison/oas/main/simple.yaml /data/simple.yaml -f githubactions + run: docker run --rm -t -v $(pwd)/:/data:ro tufin/oasdiff changelog https://raw.githubusercontent.com/reuvenharrison/oas/$PREV_COMMIT/simple.yaml /data/simple.yaml -f githubactions diff --git a/simple.yaml b/simple.yaml index 9beb4df..53f3080 100644 --- a/simple.yaml +++ b/simple.yaml @@ -8,7 +8,7 @@ paths: tags: - Test responses: - "201": + "200": description: Success /partner-api/test/another-method: get: