Skip to content

Commit

Permalink
fix(init): rename get_version to get_tag (#667)
Browse files Browse the repository at this point in the history
`tag` is more accurate.
  • Loading branch information
ybiquitous committed Aug 8, 2020
1 parent 0f035c5 commit 1eddc1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
id: get_version
- run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
id: get_tag
- uses: softprops/action-gh-release@v1
with:
body: |
See the [changelog](https://github.com/${{ github.repository }}/blob/${{ steps.get_version.outputs.VERSION }}/CHANGELOG.md) for more details.
See the [changelog](https://github.com/${{ github.repository }}/blob/${{ steps.get_tag.outputs.tag }}/CHANGELOG.md) for more details.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo ::set-output name=VERSION::\${GITHUB_REF/refs\\\\/tags\\\\//}
id: get_version
- run: echo ::set-output name=tag::\${GITHUB_REF/refs\\\\/tags\\\\//}
id: get_tag
- uses: softprops/action-gh-release@v1
with:
body: |
See the [changelog](https://github.com/\${{ github.repository }}/blob/\${{ steps.get_version.outputs.VERSION }}/CHANGELOG.md) for more details.
See the [changelog](https://github.com/\${{ github.repository }}/blob/\${{ steps.get_tag.outputs.tag }}/CHANGELOG.md) for more details.
env:
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
"
Expand Down

0 comments on commit 1eddc1c

Please sign in to comment.