Skip to content

Commit 22fe6f5

Browse files
authored
Create patch.yml
1 parent 6b235a5 commit 22fe6f5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/patch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: patch
2+
3+
on:
4+
push:
5+
paths:
6+
- 'REMOVE_THIS'
7+
#on:
8+
#schedule:
9+
# - cron: "0 13 * * 1"
10+
11+
jobs:
12+
makepatch:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
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 }}
21+
- name: Make a new tag
22+
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
23+
24+

0 commit comments

Comments
 (0)