We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af4e65 commit 43ddbe8Copy full SHA for 43ddbe8
1 file changed
.github/workflows/patch.yml
@@ -9,15 +9,17 @@ on: workflow_dispatch
9
jobs:
10
makepatch:
11
runs-on: ubuntu-latest
12
- env:
13
- Current: Hello
14
steps:
15
- uses: actions/checkout@v5
16
- name: Set current tag
17
- run: echo "CURRENT_TAG=$((/usr/bin/git describe --tags --abbrev=0))" >> $GITHUB_ENV
+ run: |
+ echo l=$((/usr/bin/git describe --tags --abbrev=0))
+ echo "CURRENT_TAG=$l" >> $GITHUB_ENV
18
- run: echo "CURRENT_TAG=$CURRENT_TAG"
19
- name: Get commits count
20
- run: echo "COMMIT_COUNT=$((/usr/bin/git rev-list --count $CURRENT_TAG..master))" >> $GITHUB_ENV
21
+ echo l=$((/usr/bin/git rev-list --count $CURRENT_TAG..master))
22
+ echo "COMMIT_COUNT=$l" >> $GITHUB_ENV
23
- if: ${{env.COMMIT_COUNT >= 5}}
24
run: echo $CURRENT_TAG | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
25
0 commit comments