Skip to content

Commit

Permalink
chore: workflow, fix release windows versionw
Browse files Browse the repository at this point in the history
  • Loading branch information
terasum committed Sep 16, 2023
1 parent 49fe3e3 commit 2adfc0e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/package-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,17 @@ jobs:
runs-on: ubuntu-latest
needs: package
steps:
- name: Get version tag
- name: Get version tag (unix)
if: matrix.platform != 'windows-2019'
id: version
# run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
run: echo "::set-output name=tag::v-3.0.1-alpha-${GITHUB_SHA:0:6}"

- name: Get version tag (windows)
if: matrix.platform == 'windows-2019'
id: versionw
run: |
echo "::set-output name=tag::v3.0.1-alpha-temp"
- name: Get changelog url
id: changelog
run: echo "${{ steps.version.outputs.tag }}---$(date +'%Y-%m-%d')" | sed -e 's/\.//g' | awk '{print "::set-output name=url::https://github.com/terasum/medict/blob/develop/CHANGELOG.md#" $1}'
Expand Down

0 comments on commit 2adfc0e

Please sign in to comment.