Skip to content

Commit

Permalink
Attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
imbhargav5 committed Dec 14, 2019
1 parent f4999cb commit 3a385dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/actions/get-release-tags/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ exec(`git fetch origin`);
const currentTag = exec(
`git describe --abbrev=0 --tags ${process.env.GITHUB_SHA}`
);
const lastTag = exec(
`git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)`
);
const lastTag = exec(`git describe --abbrev=0 --tags ${currentTag}^`);
// set outputs
core.setOutput("old", lastTag);
core.setOutput("new", currentTag);
3 changes: 2 additions & 1 deletion .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Checkout the tag
uses: actions/checkout@v1.0.0
- name: Get tag info
id: tags
uses: ./.github/actions/get-release-tags
Expand Down

0 comments on commit 3a385dc

Please sign in to comment.