Skip to content

Commit 7014ad9

Browse files
authored
Update patch.yml
1 parent c78499e commit 7014ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/patch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- id: step1
2121
run: echo "currentTag=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_OUTPUT
2222
- id: step2
23-
run: echo "commitCount=`echo $(git rev-list --count $CURRENT_TAG..master)`" >> $GITHUB_OUTPUT
23+
run: echo "commitCount=`echo $(git rev-list --count ${{steps.step1.outputs.currentTag}}..master)`" >> $GITHUB_OUTPUT
2424
- if: ${{steps.step2.outputs.commitCount >= 5}}
2525
id: step3
26-
run: echo "newTag=echo $outputs.current-tag | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'" >> $GITHUB_OUTPUT
26+
run: echo "newTag=echo ${{steps.step1.outputs.currentTag}} | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'" >> $GITHUB_OUTPUT
2727
- name: Environments
2828
run: |
2929
echo "currentTag: ${{steps.step1.outputs.currentTag}}"

0 commit comments

Comments
 (0)