File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,11 @@ jobs:
19
19
uses : actions/checkout@v4
20
20
21
21
- 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
23
23
24
- - run : echo PREV_COMMIT=${{ env.PREV_COMMIT }}
25
-
26
24
- name : Get prev file
27
25
run : echo "PREV_FILE=$(echo https://raw.githubusercontent.com/reuvenharrison/oas/${{ env.PREV_COMMIT }}/simple.yaml)" >> $GITHUB_ENV
28
26
29
- - run : echo PREV_FILE=${{ env.PREV_FILE }}
30
-
31
27
- name : Run diff
32
28
run : docker run --rm -t -v $(pwd)/:/data:ro tufin/oasdiff changelog ${{ env.PREV_FILE }} /data/simple.yaml -f githubactions
33
29
Original file line number Diff line number Diff line change 8
8
tags :
9
9
- Test
10
10
responses :
11
- " 200 " :
11
+ " 201 " :
12
12
description : Success
13
13
/partner-api/test/another-method :
14
14
get :
You can’t perform that action at this time.
0 commit comments