0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

[workflows] Fix error handling

Previously errors in actions was ignored

Change-Id: Ida263df740077926bcd8fd79a725f0cac447e59d
This commit is contained in:
Yury Shvedov 2024-02-04 13:22:57 +03:00 committed by Shvedov Yury
parent a0ef6c0ad9
commit b6f6d63d61
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
@ -28,7 +30,7 @@ case $OS in
setfacl -d --set u::rwx,g::rwx,o::- /home/build
chown nobody .
sudo -u nobody makepkg --log
mkdir dist
mv *.pkg.tar.zst dist
@ -45,4 +47,4 @@ case $OS in
*)
echo "Operating system is not recognized."
;;
esac
esac

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
# get version
VERSION=$(jq -r '.version' version_info.json)
release_name="Beta $VERSION"
@ -8,4 +10,4 @@ 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
echo "tag_name=$tag_name" >> $GITHUB_ENV

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
@ -20,4 +22,4 @@ case $OS in
*)
echo "Operating system is not recognized."
;;
esac
esac