mirror of
https://github.com/octoleo/plantuml.git
synced 2025-02-02 12:08:34 +00:00
upd: add Checkout
before Configure workflow
- Adding `Checkout the repository` _(I don't know if it optimized or not...)_ before the `Configure workflow` - Fix variable in Uppercase
This commit is contained in:
parent
24c18715ae
commit
3dd8b13f6c
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -27,6 +27,9 @@ jobs:
|
|||||||
do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }}
|
do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }}
|
||||||
pom_version: ${{ steps.config.outputs.pom_version }}
|
pom_version: ${{ steps.config.outputs.pom_version }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Configure workflow
|
- name: Configure workflow
|
||||||
id: config
|
id: config
|
||||||
env:
|
env:
|
||||||
@ -59,8 +62,8 @@ jobs:
|
|||||||
elif [[ "${GITHUB_EVENT_NAME}" =~ push|workflow_dispatch && "${REF}" == "refs/heads/master" ]]; then
|
elif [[ "${GITHUB_EVENT_NAME}" =~ push|workflow_dispatch && "${REF}" == "refs/heads/master" ]]; then
|
||||||
echo "::notice title=::This run will release a snapshot"
|
echo "::notice title=::This run will release a snapshot"
|
||||||
echo "::set-output name=do_snapshot_release::true"
|
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)
|
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
|
echo "::set-output name=pom_version::$V-SNAPSHOT" # pom_version is taken from Version.java
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "This run will NOT make a release"
|
echo "This run will NOT make a release"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user