mirror of
https://github.com/octoleo/plantuml.git
synced 2025-01-22 14:48:30 +00:00
Merge pull request #1033 from The-Lum/AddVersionOnSnapshotCI
[CI] Add pseudo version on Snapshot
This commit is contained in:
commit
db3252a5ad
4
.github/scripts/release-snapshot.sh
vendored
4
.github/scripts/release-snapshot.sh
vendored
@ -42,8 +42,8 @@ EOF
|
||||
gh release create \
|
||||
--prerelease \
|
||||
--target "${GITHUB_SHA}" \
|
||||
--title "${TAG}" \
|
||||
--title "${TAG} (~v${POM_VERSION%-SNAPSHOT} [${DATE_TIME_UTC}])" \
|
||||
--notes-file notes.txt \
|
||||
"${TAG}" ${RELEASE_DIR}/*
|
||||
|
||||
echo "::notice title=release snapshot::Snapshot released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} and taken the ${DATE_TIME_UTC}"
|
||||
echo "::notice title=release snapshot::Snapshot (~v${POM_VERSION%-SNAPSHOT}) released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} and taken the ${DATE_TIME_UTC}"
|
||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -59,6 +59,8 @@ jobs:
|
||||
elif [[ "${GITHUB_EVENT_NAME}" =~ push|workflow_dispatch && "${REF}" == "refs/heads/master" ]]; then
|
||||
echo "::notice title=::This run will release a snapshot"
|
||||
echo "::set-output name=do_snapshot_release::true"
|
||||
v=$(perl -ne 'if (/return (\d{6,7});/) {$v=$1} if (/final int beta = (\d+);/) {$b=$1} END{print(substr($v, 0, 1),".", substr($v, 1, 4),"."); if ($b) {print(int(substr($v+1, 5)), "beta", $b);} else {print(int(substr($v, 5)))}}' src/net/sourceforge/plantuml/version/Version.java)
|
||||
echo "::set-output name=pom_version::$v-SNAPSHOT" # pom_version is taken from Version.java
|
||||
|
||||
else
|
||||
echo "This run will NOT make a release"
|
||||
|
@ -1 +1 @@
|
||||
version = 1.2022.1-SNAPSHOT
|
||||
version = M.YYYY.m-SNAPSHOT
|
||||
|
Loading…
x
Reference in New Issue
Block a user