Skip to content

Commit

Permalink
chore: workflow, fix version substr github_sha
Browse files Browse the repository at this point in the history
  • Loading branch information
terasum committed Sep 16, 2023
1 parent fd40623 commit 5a37d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
- name: Get version tag (unix)
if: matrix.platform != 'windows-2019'
id: version
run: |
export MEDICT_BUILD_VER="v-3.0.1-alpha-"$(date +%Y%m%d%H%M)
echo "::set-output name=tag::${MEDICT_BUILD_VER}"
run: echo "::set-output name=tag::v-3.0.1-alpha-${GITHUB_SHA:0:6}"

- name: Inall pnpm
uses: pnpm/action-setup@v2
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build-macos-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
- name: Get version tag (unix)
if: matrix.platform != 'windows-2019'
id: version
run: |
export MEDICT_BUILD_VER="v-3.0.1-alpha-"$(date +%Y%m%d%H%M)
echo "::set-output name=tag::${MEDICT_BUILD_VER}"
run: echo "::set-output name=tag::v-3.0.1-alpha-${GITHUB_SHA:0:6}"

- name: Inall pnpm
uses: pnpm/action-setup@v2
Expand Down Expand Up @@ -67,7 +65,7 @@ jobs:
- name: Get version tag
id: version
# run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
run: echo "::set-output name=tag::${GITHUB_SHA}"
run: echo "::set-output name=tag::v-3.0.1-alpha-${GITHUB_SHA:0:6}"

- name: Get changelog url
id: changelog
Expand Down

0 comments on commit 5a37d1c

Please sign in to comment.