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 22fe6f5 commit ac87a24Copy full SHA for ac87a24
.github/workflows/patch.yml
@@ -3,7 +3,7 @@ name: patch
3
on:
4
push:
5
paths:
6
- - 'REMOVE_THIS'
+ - './TEST'
7
#on:
8
#schedule:
9
# - cron: "0 13 * * 1"
@@ -16,8 +16,9 @@ jobs:
16
- name: Set current tag
17
run: echo "CURRENT_TAG=${git describe --tags --abbrev=0}" >> $GITHUB_ENV
18
- run: echo "CURRENT_TAG=$CURRENT_TAG"
19
- - run: echo "commits count ${git rev-list --count $CURRENT_TAG..master}"
20
- - if: ${{ git rev-list --count $CURRENT_TAG..master >= 5 }}
+ - name: Get commits count
+ run: echo "COMMIT_COUNT=${git rev-list --count $CURRENT_TAG..master}" >> $GITHUB_ENV
21
+ - if: ${{ $COMMIT_COUNT >= 5 }}
22
- name: Make a new tag
23
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
24
0 commit comments