We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2085810 commit 4af4e65Copy full SHA for 4af4e65
.github/workflows/patch.yml
@@ -14,14 +14,10 @@ jobs:
14
steps:
15
- uses: actions/checkout@v5
16
- name: Set current tag
17
- run: |
18
- l=$(/usr/bin/git describe --tags --abbrev=0)
19
- echo "CURRENT_TAG=$l" >> $GITHUB_ENV
+ run: echo "CURRENT_TAG=$((/usr/bin/git describe --tags --abbrev=0))" >> $GITHUB_ENV
20
- run: echo "CURRENT_TAG=$CURRENT_TAG"
21
- name: Get commits count
22
23
- l=$(/usr/bin/git rev-list --count $CURRENT_TAG..master)
24
- echo "COMMIT_COUNT=l" >> $GITHUB_ENV
+ run: echo "COMMIT_COUNT=$((/usr/bin/git rev-list --count $CURRENT_TAG..master))" >> $GITHUB_ENV
25
- if: ${{env.COMMIT_COUNT >= 5}}
26
run: echo $CURRENT_TAG | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
27
0 commit comments