Skip to content

Commit

Permalink
uff
Browse files Browse the repository at this point in the history
  • Loading branch information
9FS committed Sep 18, 2024
1 parent b113899 commit edac7f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/on tag deploy on github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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}}


Expand Down

0 comments on commit edac7f9

Please sign in to comment.