Skip to content

Commit

Permalink
--skip=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Jul 4, 2024
1 parent 8f4ec68 commit 998587e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
uses: actions/checkout@v4

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

- 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 --skip=1 --max-count=1 | grep commit | cut -d' ' -f2)" >> $GITHUB_ENV

- name: Get prev file
run: echo "PREV_FILE=$(echo https://raw.githubusercontent.com/reuvenharrison/oas/${{ env.PREV_COMMIT }}/simple.yaml)" >> $GITHUB_ENV
Expand Down
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:
"201":
"200":
description: Success
/partner-api/test/another-method:
get:
Expand Down

0 comments on commit 998587e

Please sign in to comment.