1
0
mirror of synced 2024-11-24 22:36:07 +03:00

Fix comparison before building release (#160)

This commit is contained in:
Pavel 2020-11-23 17:02:44 +03:00 committed by GitHub
parent 83534eaf0f
commit 0fa7c8d819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,11 +79,14 @@ jobs:
export CURRENT_VERSION=`php bin/bitrix-version` export CURRENT_VERSION=`php bin/bitrix-version`
export ARCHIVE_PATH="${{ github.workspace }}/release/$CURRENT_VERSION.tar.gz" export ARCHIVE_PATH="${{ github.workspace }}/release/$CURRENT_VERSION.tar.gz"
export LAST_TAG=`git describe --tags $(git rev-list --tags --max-count=1) || true` export LAST_TAG=`git describe --tags $(git rev-list --tags --max-count=1) || true`
export RELEASE_TAG=v$CURRENT_VERSION
echo CURRENT_VERSION=$CURRENT_VERSION >> $GITHUB_ENV echo CURRENT_VERSION=$CURRENT_VERSION >> $GITHUB_ENV
echo LAST_TAG=$LAST_TAG >> $GITHUB_ENV echo LAST_TAG=$LAST_TAG >> $GITHUB_ENV
echo ARCHIVE_NAME="$CURRENT_VERSION.tar.gz" >> $GITHUB_ENV echo ARCHIVE_NAME="$CURRENT_VERSION.tar.gz" >> $GITHUB_ENV
echo ARCHIVE_PATH=$ARCHIVE_PATH >> $GITHUB_ENV echo ARCHIVE_PATH=$ARCHIVE_PATH >> $GITHUB_ENV
echo RELEASE_TAG=v$CURRENT_VERSION >> $GITHUB_ENV echo RELEASE_TAG=$RELEASE_TAG >> $GITHUB_ENV
echo Current version is $CURRENT_VERSION, release tag will be v$CURRENT_VERSION
echo Last tag is $LAST_TAG, archive will be saved to $ARCHIVE_PATH
make build_release make build_release
- name: Create Release - name: Create Release
id: create_release id: create_release