mirror of https://github.com/statping/statping
print tag result
parent
7ada23048c
commit
f8c4b1f0f2
|
@ -28,7 +28,7 @@ jobs:
|
|||
id: versions
|
||||
run: |
|
||||
TAG=$(git describe --tags)
|
||||
if [ "${{ github.ref }}" = "refs/heads/$TAG"]; then
|
||||
if [ "${{ github.ref }}" = "refs/heads/$TAG" ]; then
|
||||
echo "is_release=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "is_release=false" >> $GITHUB_OUTPUT
|
||||
|
@ -36,6 +36,11 @@ jobs:
|
|||
# this will be v1.2.3 for on-tag builds and v1.2.3-numberofcommits-sha for off-tag builds
|
||||
echo "version=$LAST_TAG" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- name: show data results
|
||||
run: |
|
||||
echo == version summary ==
|
||||
echo is_release: ${{ steps.versions.outputs.is_release }}
|
||||
echo version: ${{ steps.versions.outputs.version }}
|
||||
frontend:
|
||||
runs-on: ubuntu-latest
|
||||
needs: data
|
||||
|
|
Loading…
Reference in New Issue