Skip to content

Commit 0873cee

Browse files
authored
Update patch.yml
1 parent 745501a commit 0873cee

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/patch.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# - cron: "0 13 * * 1"
1010

1111
jobs:
12-
makepatch:
12+
getcount:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v5
@@ -18,10 +18,13 @@ jobs:
1818
- run: echo "CURRENT_TAG=$CURRENT_TAG"
1919
- name: Get commits count
2020
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'
21+
makepatch:
22+
needs: getcount
23+
if: ${{env.COMMIT_COUNT >= 5}}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v5
27+
- name: Make a new tag
28+
run: echo "$CURRENT_TAG" | awk 'BEGIN{FS=OFS="."} {$3+=1} 1'
2629

2730

0 commit comments

Comments
 (0)