Skip to content

Commit 5f763da

Browse files
authored
Update bump-version.yml
1 parent 337f81b commit 5f763da

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/bump-version.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Bump Version
22
on:
33
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: 'force release'
7+
required: false
8+
default: '0'
49
schedule:
510
- cron: '0 0 * * *'
611
jobs:
@@ -30,7 +35,12 @@ jobs:
3035
--grep='^revert:' \
3136
--grep='^chore:' | awk 'END{print NR}')
3237
echo "steps.changes.outputs.count = $COUNT"
33-
echo "::set-output name=count::$COUNT"
38+
FORCE=${{ github.event.inputs.force }}
39+
if [[ "$FORCE" = "1" ]]; then
40+
echo "::set-output name=count::1"
41+
else
42+
echo "::set-output name=count::$COUNT"
43+
fi
3444
- name: Bump version and push tag
3545
id: tag_version
3646
uses: mathieudutour/[email protected]

0 commit comments

Comments
 (0)