Skip to content

Commit 5a7bc42

Browse files
authored
Update patch.yml
1 parent 1809662 commit 5a7bc42

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/patch.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on: workflow_dispatch
99
jobs:
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

@@ -39,4 +37,7 @@ jobs:
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

0 commit comments

Comments
 (0)