chore(release): add 'none' bump option for first-time / already-bumped publishes
This commit is contained in:
@@ -15,13 +15,14 @@ on:
|
|||||||
- ifc-converter
|
- ifc-converter
|
||||||
- all
|
- all
|
||||||
bump:
|
bump:
|
||||||
description: "Version bump"
|
description: "Version bump (use 'none' to publish current version as-is)"
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- patch
|
- patch
|
||||||
- minor
|
- minor
|
||||||
- major
|
- major
|
||||||
|
- none
|
||||||
dry-run:
|
dry-run:
|
||||||
description: "Dry run (no publish)"
|
description: "Dry run (no publish)"
|
||||||
required: false
|
required: false
|
||||||
@@ -65,6 +66,7 @@ jobs:
|
|||||||
if [ "$BUMP" = "major" ]; then MAJ=$((MAJ+1)); MIN=0; PAT=0; fi
|
if [ "$BUMP" = "major" ]; then MAJ=$((MAJ+1)); MIN=0; PAT=0; fi
|
||||||
if [ "$BUMP" = "minor" ]; then MIN=$((MIN+1)); PAT=0; fi
|
if [ "$BUMP" = "minor" ]; then MIN=$((MIN+1)); PAT=0; fi
|
||||||
if [ "$BUMP" = "patch" ]; then PAT=$((PAT+1)); fi
|
if [ "$BUMP" = "patch" ]; then PAT=$((PAT+1)); fi
|
||||||
|
if [ "$BUMP" = "none" ]; then echo "$v"; return; fi
|
||||||
echo "$MAJ.$MIN.$PAT"
|
echo "$MAJ.$MIN.$PAT"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user