mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Version as major.minor (1.0); bump minor monthly, major for breaking
This commit is contained in:
parent
d4eff44f91
commit
662b47c45d
2 changed files with 9 additions and 8 deletions
15
.github/workflows/release-version.yml
vendored
15
.github/workflows/release-version.yml
vendored
|
|
@ -2,11 +2,12 @@
|
||||||
# commit. Run this workflow manually once the `main` content is ready to be
|
# commit. Run this workflow manually once the `main` content is ready to be
|
||||||
# consumed by a new engine release.
|
# consumed by a new engine release.
|
||||||
#
|
#
|
||||||
# The release version is a single monotonic integer in the repo-root VERSION
|
# The release version is a `major.minor` value in the repo-root VERSION file.
|
||||||
# file. This workflow tags the current commit as `v{VERSION}` and refuses to
|
# This workflow tags the current commit as `v{VERSION}` and refuses to re-tag an
|
||||||
# re-tag an existing version, so bumping VERSION is the deliberate act that
|
# existing version, so bumping VERSION is the deliberate act that starts a new
|
||||||
# starts a new release. Downstream, the PR-review engine pins this version in
|
# release. Bump the minor for the usual ~monthly content release, the major for a
|
||||||
# its bcquality.config.yaml and embeds it in its own tag.
|
# breaking change. Downstream, the PR-review engine pins this version in its
|
||||||
|
# bcquality.config.yaml and embeds its MINOR as the 3rd segment of its own tag.
|
||||||
|
|
||||||
name: Release version
|
name: Release version
|
||||||
|
|
||||||
|
|
@ -33,8 +34,8 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
version="$(tr -d ' \t\r\n' < VERSION)"
|
version="$(tr -d ' \t\r\n' < VERSION)"
|
||||||
if [[ ! "$version" =~ ^[0-9]+$ ]]; then
|
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||||
echo "::error::VERSION must be a single integer (got: '$version')"
|
echo "::error::VERSION must be a 'major.minor' value (got: '$version')"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
tag="v${version}"
|
tag="v${version}"
|
||||||
|
|
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
1
|
1.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue