[FIX] GitHub Actions - получение версии из тега

This commit is contained in:
Andrew Molchanov 2021-09-01 13:49:54 +03:00 committed by GitHub
parent 6f2f7bee13
commit b424da0d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ jobs:
- name: Get version value, set to env
if: startsWith(github.event.ref, 'refs/tags')
run: echo "LAUNCHER_VERSION=v$(awk -F\' '/version =/ {print $2}' build.gradle)" >> $GITHUB_ENV
run: echo "LAUNCHER_VERSION=$(echo ${{ github.event.ref }} | awk -F\/ '{print $3}')" >> $GITHUB_ENV
- name: Create release
id: create_release