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 745501a commit 0873ceeCopy full SHA for 0873cee
.github/workflows/patch.yml
@@ -9,7 +9,7 @@ on:
9
# - cron: "0 13 * * 1"
10
11
jobs:
12
- makepatch:
+ getcount:
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v5
@@ -18,10 +18,13 @@ jobs:
18
- run: echo "CURRENT_TAG=$CURRENT_TAG"
19
- name: Get commits count
20
run: echo "COMMIT_COUNT=${git rev-list --count $CURRENT_TAG..master}" >> $GITHUB_ENV
21
- - name: Check count
22
- if: ${{env.COMMIT_COUNT >= 5}}
23
- with:
24
- name: Make a new tag
25
- run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
+ makepatch:
+ needs: getcount
+ if: ${{env.COMMIT_COUNT >= 5}}
+ runs-on: ubuntu-latest
+ steps:
26
+ - uses: actions/checkout@v5
27
+ - name: Make a new tag
28
+ run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
29
30
0 commit comments