From fd40623a018e96043adc58e4e9feb8ba8be385fb Mon Sep 17 00:00:00 2001 From: terasum Date: Sat, 16 Sep 2023 09:51:07 +0800 Subject: [PATCH] chore: workflow, fix version output by date --- .github/workflows/build-linux.yaml | 5 +++-- .github/workflows/build-macos-x86_64.yaml | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index 3fadba84..5525934b 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -18,8 +18,9 @@ jobs: - name: Get version tag (unix) if: matrix.platform != 'windows-2019' id: version - # run: echo "::set-output name=tag::${GITHUB_SHA}" - run: echo "::set-output name=tag::v-3.0.1-alpha-"$(date +%Y%m%d)" + run: | + export MEDICT_BUILD_VER="v-3.0.1-alpha-"$(date +%Y%m%d%H%M) + echo "::set-output name=tag::${MEDICT_BUILD_VER}" - name: Inall pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/build-macos-x86_64.yaml b/.github/workflows/build-macos-x86_64.yaml index 174c8fb7..1eb2c516 100644 --- a/.github/workflows/build-macos-x86_64.yaml +++ b/.github/workflows/build-macos-x86_64.yaml @@ -18,7 +18,9 @@ jobs: - name: Get version tag (unix) if: matrix.platform != 'windows-2019' id: version - run: echo "::set-output name=tag::v-3.0.1-alpha-"$(date +%Y%m%d)" + run: | + export MEDICT_BUILD_VER="v-3.0.1-alpha-"$(date +%Y%m%d%H%M) + echo "::set-output name=tag::${MEDICT_BUILD_VER}" - name: Inall pnpm uses: pnpm/action-setup@v2