mirror of https://github.com/statping/statping
even more version info output in data stage
parent
21a0ae2c4f
commit
5742367ee3
|
@ -14,19 +14,19 @@ jobs:
|
||||||
# also, the name is intentionally short to make later references shorter.
|
# also, the name is intentionally short to make later references shorter.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
is_release: ${{ steps.versions.outputs.is_release }}
|
is_release: ${{ steps.statping-versions.outputs.is_release }}
|
||||||
is_prerelease: ${{ steps.versions.outputs.is_prerelease }}
|
is_prerelease: ${{ steps.statping-versions.outputs.is_prerelease }}
|
||||||
# this will be v1.2.3 for on-tag builds and v1.2.3-numberofcommits-sha for off-tag builds
|
# this will be v1.2.3 for on-tag builds and v1.2.3-numberofcommits-sha for off-tag builds
|
||||||
version: ${{ steps.versions.outputs.version }}
|
version: ${{ steps.statping-versions.outputs.version }}
|
||||||
go_version: 1.18.x
|
go_version: ${{ steps.tool-versions.outputs.go_version }}
|
||||||
node_version: 16.14.0
|
node_version: ${{ steps.tool-versions.outputs.node_version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# check on https://github.com/actions/checkout/pull/579 occasionally if actions/checkout can do this natively yet
|
# check on https://github.com/actions/checkout/pull/579 occasionally if actions/checkout can do this natively yet
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: get version information
|
- name: get statping version information
|
||||||
id: versions
|
id: statping-versions
|
||||||
run: |
|
run: |
|
||||||
STABLE_TAG=$(git describe --tags --exclude '*-*')
|
STABLE_TAG=$(git describe --tags --exclude '*-*')
|
||||||
BETA_TAG=$(git describe --tags --match '*-*')
|
BETA_TAG=$(git describe --tags --match '*-*')
|
||||||
|
@ -46,13 +46,24 @@ jobs:
|
||||||
echo "version=$STABLE_TAG" >> $GITHUB_OUTPUT
|
echo "version=$STABLE_TAG" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- name: get statping version information
|
||||||
|
id: statping-versions
|
||||||
|
run: |
|
||||||
|
echo "go_version=1.18.x" >> $GITHUB_OUTPUT
|
||||||
|
echo "node_version=16.14.0" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
- name: show data results
|
- name: show data results
|
||||||
run: |
|
run: |
|
||||||
echo == version summary ==
|
echo == tools versions ==
|
||||||
|
echo go_version: ${{ steps.tool-versions.outputs.go_version }}
|
||||||
|
echo node_version: ${{ steps.tool-versions.outputs.node_version }}
|
||||||
|
echo == matched tags ==
|
||||||
echo stable_tag: ${{ steps.versions.outputs.stable_tag }}
|
echo stable_tag: ${{ steps.versions.outputs.stable_tag }}
|
||||||
echo beta_tag: ${{ steps.versions.outputs.beta_tag }}
|
echo beta_tag: ${{ steps.versions.outputs.beta_tag }}
|
||||||
|
echo == release information ==
|
||||||
echo is_release: ${{ steps.versions.outputs.is_release }}
|
echo is_release: ${{ steps.versions.outputs.is_release }}
|
||||||
echo is_prerelease: ${{ steps.versions.outputs.is_prerelease }}
|
echo is_prerelease: ${{ steps.versions.outputs.is_prerelease }}
|
||||||
|
echo == statping version ==
|
||||||
echo version: ${{ steps.versions.outputs.version }}
|
echo version: ${{ steps.versions.outputs.version }}
|
||||||
frontend:
|
frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue