🐞 fix: Add step to retrieve and use tag in release workflow #release
This commit is contained in:
@@ -17,17 +17,19 @@ jobs:
|
||||
id: trunkver
|
||||
uses: https://github.com/crftd-tech/trunkver@main
|
||||
|
||||
- name: Print trunkver
|
||||
env:
|
||||
TRUNKVER: ${{ steps.trunkver.outputs.trunkver }}
|
||||
run: |
|
||||
echo "$TRUNKVER"
|
||||
- name: Get tag
|
||||
id: tag
|
||||
uses: https://github.com/dawidd6/action-get-tag@v1
|
||||
with:
|
||||
# Optionally strip `v` prefix
|
||||
strip_v: true
|
||||
- name: Use tag
|
||||
run: echo ${{steps.tag.outputs.tag}}
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: https://github.com/comnoco/create-release-action@v2
|
||||
env:
|
||||
TRUNKVER: ${{ steps.trunkver.outputs.trunkver }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.trunkver.outputs.trunkver }}
|
||||
|
||||
Reference in New Issue
Block a user