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 6b235a5 commit 22fe6f5Copy full SHA for 22fe6f5
.github/workflows/patch.yml
@@ -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