File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ on: workflow_dispatch
99jobs :
1010 setup-outputs :
1111 runs-on : ubuntu-latest
12+
1213 outputs :
1314 currentTag : ${{ steps.step1.outputs.currentTag }}
1415 commitCount : ${{ steps.step2.outputs.commitCount }}
15- newTag : ${{ steps.step3.outputs.newTag }}
16+
1617 steps :
1718 - uses : actions/checkout@v5
1819 with :
@@ -21,14 +22,11 @@ jobs:
2122 run : echo "currentTag=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_OUTPUT
2223 - id : step2
2324 run : echo "commitCount=`echo $(git rev-list --count ${{steps.step1.outputs.currentTag}}..master)`" >> $GITHUB_OUTPUT
24- - if : ${{steps.step2.outputs.commitCount >= 5}}
25- id : step3
26- run : echo "newTag=`echo $(echo ${{steps.step1.outputs.currentTag}} | awk 'BEGIN{FS=OFS="."} {$3+=1} 1')`" >> $GITHUB_OUTPUT
25+
2726 - name : Outputs
2827 run : |
2928 echo "currentTag: ${{steps.step1.outputs.currentTag}}"
3029 echo "commitCount: ${{steps.step2.outputs.commitCount}}"
31- echo "newTag: ${{steps.step3.outputs.newTag}}"
3230 make-patch :
3331 needs : setup-outputs
3432
3937 - uses : actions/checkout@v5
4038 with :
4139 fetch-depth : 0
42- - run : echo "patch"
40+ - id : step1
41+ run : echo "newTag=`echo $(echo ${{needs.setup-outputs.outputs.currentTag}} | awk 'BEGIN{FS=OFS="."} {$3+=1} 1')`" >> $GITHUB_ENV
42+ - id : step2
43+ run : echo "realeseNote=`echo $(git log 0.0.09..master --format=format:"- [%s](https://github.com/TiLied/CSharpToJavaScript/commit/%H)")`" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments