Skip to content

Commit 998587e

Browse files
author
Reuven
committedJul 4, 2024·
--skip=1
1 parent 8f4ec68 commit 998587e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎.github/workflows/bc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Git Log
22-
run: git log -n2
22+
run: git --no-pager log --skip=1 --max-count=1
2323

2424
- name: Get prev commit
25-
run: echo "PREV_COMMIT=$(git --no-pager log -n2 | grep commit | tail -n1 | cut -d' ' -f2)" >> $GITHUB_ENV
25+
run: echo "PREV_COMMIT=$(git --no-pager log --skip=1 --max-count=1 | grep commit | cut -d' ' -f2)" >> $GITHUB_ENV
2626

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

‎simple.yaml

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

0 commit comments

Comments
 (0)
Please sign in to comment.