From e66fa99534394a22199e40a230f098b7fa220433 Mon Sep 17 00:00:00 2001 From: 9FS Date: Wed, 18 Sep 2024 19:21:16 +0000 Subject: [PATCH] now? --- .github/workflows/on tag deploy on github.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/on tag deploy on github.yaml b/.github/workflows/on tag deploy on github.yaml index 5bb9970..6a85d59 100644 --- a/.github/workflows/on tag deploy on github.yaml +++ b/.github/workflows/on tag deploy on github.yaml @@ -27,13 +27,11 @@ jobs: - name: "TAG" id: "tag" - run: "echo \"TAG=${GITHUB_REF#refs/tags/*}\" >> $GITHUB_OUTPUT" # parse tag because github.ref provides tag as f"refs/tags/{tag}" - shell: "bash" # must be bash even on windows, because command to apply value to variable works differently in powershell + run: "echo \"TAG=$(git describe --tags --abbrev=0 --match '*')\" >> $GITHUB_OUTPUT" # get tag, save in TAG, push to output - name: "TAG_PREVIOUS" id: "tag_previous" - run: "echo \"TAG_PREVIOUS=$(git describe --tags --abbrev=0 --match '*')\" >> $GITHUB_OUTPUT" # get previous tag, save in TAG_PREVIOUS, push to output - shell: "bash" + run: "echo \"TAG_PREVIOUS=$(git describe --tags --abbrev=0 --match '*' HEAD^)\" >> $GITHUB_OUTPUT" # get previous tag, save in TAG_PREVIOUS, push to output - name: "TODAY" id: "today"