Skip to content

Commit 4af4e65

Browse files
authored
Update patch.yml
1 parent 2085810 commit 4af4e65

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/patch.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v5
1616
- name: Set current tag
17-
run: |
18-
l=$(/usr/bin/git describe --tags --abbrev=0)
19-
echo "CURRENT_TAG=$l" >> $GITHUB_ENV
17+
run: echo "CURRENT_TAG=$((/usr/bin/git describe --tags --abbrev=0))" >> $GITHUB_ENV
2018
- run: echo "CURRENT_TAG=$CURRENT_TAG"
2119
- name: Get commits count
22-
run: |
23-
l=$(/usr/bin/git rev-list --count $CURRENT_TAG..master)
24-
echo "COMMIT_COUNT=l" >> $GITHUB_ENV
20+
run: echo "COMMIT_COUNT=$((/usr/bin/git rev-list --count $CURRENT_TAG..master))" >> $GITHUB_ENV
2521
- if: ${{env.COMMIT_COUNT >= 5}}
2622
run: echo $CURRENT_TAG | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
2723

0 commit comments

Comments
 (0)