diff --git a/.github/workflows/on tag deploy on github.yaml b/.github/workflows/on tag deploy on github.yaml index a222ebf..9587b17 100644 --- a/.github/workflows/on tag deploy on github.yaml +++ b/.github/workflows/on tag deploy on github.yaml @@ -22,13 +22,13 @@ jobs: id: "now" run: "echo \"NOW=$(date +'%Y-%m-%dT%H:%M:%S')\" >> $GITHUB_OUTPUT" # get datetime, save in NOW, push to output - - name: "Parse Tag" - id: "parse_tag" + - 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 - - name: "Parse Previous Tag" - id: "parse_tag_previous" + - 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" @@ -38,8 +38,8 @@ jobs: outputs: # set step output as job output so other jobs can access NOW: ${{steps.now.outputs.NOW}} - TAG: ${{steps.parse_tag.outputs.TAG}} - TAG_PREVIOUS: ${{steps.parse_tag_previous.outputs.TAG_PREVIOUS}} + TAG: ${{steps.tag.outputs.TAG}} + TAG_PREVIOUS: ${{steps.tag_previous.outputs.TAG_PREVIOUS}} TODAY: ${{steps.today.outputs.TODAY}}