Skip to content

Commit cd3c596

Browse files
author
Reuven
committedJul 4, 2024
last version
1 parent f437fb9 commit cd3c596

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎.github/workflows/bc.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Get prev commit
22-
run: echo "PREV_COMMIT=$(git --no-pager log -n2 | grep commit | tail -n1 | cut -d' ' -f2)" >> $GITHUB_ENV
22+
run: echo "PREV_COMMIT=$(git --no-pager log -n1 | grep commit | tail -n1 | cut -d' ' -f2)" >> $GITHUB_ENV
2323

24-
- run: echo PREV_COMMIT=${{ env.PREV_COMMIT }}
25-
2624
- name: Get prev file
2725
run: echo "PREV_FILE=$(echo https://raw.githubusercontent.com/reuvenharrison/oas/${{ env.PREV_COMMIT }}/simple.yaml)" >> $GITHUB_ENV
2826

29-
- run: echo PREV_FILE=${{ env.PREV_FILE }}
30-
3127
- name: Run diff
3228
run: docker run --rm -t -v $(pwd)/:/data:ro tufin/oasdiff changelog ${{ env.PREV_FILE }} /data/simple.yaml -f githubactions
3329

‎simple.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ paths:
88
tags:
99
- Test
1010
responses:
11-
"200":
11+
"201":
1212
description: Success
1313
/partner-api/test/another-method:
1414
get:

0 commit comments

Comments
 (0)