0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00
yandex-music-linux/.github/workflows/retrieve_version.sh
Yury Shvedov b6f6d63d61 [workflows] Fix error handling
Previously errors in actions was ignored

Change-Id: Ida263df740077926bcd8fd79a725f0cac447e59d
2024-02-04 13:39:50 +03:00

14 lines
292 B
Bash

#!/bin/bash
set -e
# get version
VERSION=$(jq -r '.version' version_info.json)
release_name="Beta $VERSION"
tag_name="v$VERSION"
#write variables to github env
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "release_name=$release_name" >> $GITHUB_ENV
echo "tag_name=$tag_name" >> $GITHUB_ENV