ci: git-version-action: Always report described version
This commit is contained in:
parent
1835a2cab6
commit
37889e5659
1 changed files with 1 additions and 5 deletions
6
.github/actions/get-version/action.yml
vendored
6
.github/actions/get-version/action.yml
vendored
|
|
@ -6,9 +6,5 @@ runs:
|
|||
|
||||
steps:
|
||||
- run: |
|
||||
if [[ "$GITHUB_REF" == *"tags/v"* ]]; then
|
||||
echo "DESKFLOW_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "DESKFLOW_VERSION=$(git describe --long | sed 's/-/./g;s/v//g' | grep -o '^[0-9]*.[0-9]*.[0-9]*.[0-9]*')">> $GITHUB_ENV
|
||||
fi
|
||||
echo "DESKFLOW_VERSION=$(git describe --long | sed 's/-/./g;s/v//g' | grep -o '^[0-9]*.[0-9]*.[0-9]*.[0-9]*')">> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue