From 6fd4e5ac0603bcbee35efc2d794a692cefea8f0d Mon Sep 17 00:00:00 2001 From: Jason Lyu Date: Sat, 16 Dec 2023 03:28:56 +0800 Subject: [PATCH] add commit (#27) --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13a59ba..7055094 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,15 +19,18 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Generate Version id: shell run: | + echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT echo "version=$(date -u '+%Y.%-m%d.%-H%M.0')" >> $GITHUB_OUTPUT - name: Make bundle run: | - echo v${{ steps.shell.outputs.version }} > VERSION + echo v${{ steps.shell.outputs.version }}-${{ steps.shell.outputs.commit }} | tee VERSION mkdir -p MetaTube.bundle/ mv LICENSE MetaTube.bundle/ mv VERSION MetaTube.bundle/