Skip to content

Commit ac87a24

Browse files
authored
Update patch.yml
1 parent 22fe6f5 commit ac87a24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/patch.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: patch
33
on:
44
push:
55
paths:
6-
- 'REMOVE_THIS'
6+
- './TEST'
77
#on:
88
#schedule:
99
# - cron: "0 13 * * 1"
@@ -16,8 +16,9 @@ jobs:
1616
- name: Set current tag
1717
run: echo "CURRENT_TAG=${git describe --tags --abbrev=0}" >> $GITHUB_ENV
1818
- 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 }}
19+
- name: Get commits count
20+
run: echo "COMMIT_COUNT=${git rev-list --count $CURRENT_TAG..master}" >> $GITHUB_ENV
21+
- if: ${{ $COMMIT_COUNT >= 5 }}
2122
- name: Make a new tag
2223
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
2324

0 commit comments

Comments
 (0)