Skip to content

Commit

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

0 comments on commit e66fa99

Please sign in to comment.