Skip to content

Commit

Permalink
Merge pull request #95 from 9renpoto/fix/semver
Browse files Browse the repository at this point in the history
fix: export current tag name
  • Loading branch information
9renpoto committed Dec 3, 2023
2 parents 3296ae7 + 7c46cef commit d60ed28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
with:
result-encoding: string
script: |
const notes = await github.rest.repos.getLatestRelease(
const release = await github.rest.repos.getLatestRelease(
{
owner: context.repo.owner,
repo: context.repo.repo,
}
);
return notes.data.body;
return release.data.tag_name;
- name: semver
id: get_version
run: echo "NEW_VERSION=$(docker run --rm alpine/semver semver -c -i ${{ inputs.semver }} ${{ steps.github_releases.outputs.result }})"
run: echo "NEW_VERSION=$(docker run --rm alpine/semver semver -c -i ${{ inputs.semver }} ${{ steps.github_releases.outputs.result }})" >> "$GITHUB_OUTPUT"

- run: echo ${{steps.get_version.outputs.NEW_VERSION}}

Expand Down

0 comments on commit d60ed28

Please sign in to comment.