Skip to content

Commit

Permalink
last version
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Jul 4, 2024
1 parent f437fb9 commit cd3c596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ jobs:
uses: actions/checkout@v4

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

- run: echo PREV_COMMIT=${{ env.PREV_COMMIT }}

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

- run: echo PREV_FILE=${{ env.PREV_FILE }}

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

2 changes: 1 addition & 1 deletion simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ paths:
tags:
- Test
responses:
"200":
"201":
description: Success
/partner-api/test/another-method:
get:
Expand Down

0 comments on commit cd3c596

Please sign in to comment.