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:
parent
a0ef6c0ad9
commit
b6f6d63d61
6
.github/workflows/build.sh
vendored
6
.github/workflows/build.sh
vendored
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
OS=$NAME
|
OS=$NAME
|
||||||
@ -28,7 +30,7 @@ case $OS in
|
|||||||
setfacl -d --set u::rwx,g::rwx,o::- /home/build
|
setfacl -d --set u::rwx,g::rwx,o::- /home/build
|
||||||
chown nobody .
|
chown nobody .
|
||||||
sudo -u nobody makepkg --log
|
sudo -u nobody makepkg --log
|
||||||
|
|
||||||
mkdir dist
|
mkdir dist
|
||||||
mv *.pkg.tar.zst dist
|
mv *.pkg.tar.zst dist
|
||||||
|
|
||||||
@ -45,4 +47,4 @@ case $OS in
|
|||||||
*)
|
*)
|
||||||
echo "Operating system is not recognized."
|
echo "Operating system is not recognized."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
4
.github/workflows/retrieve_version.sh
vendored
4
.github/workflows/retrieve_version.sh
vendored
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# get version
|
# get version
|
||||||
VERSION=$(jq -r '.version' version_info.json)
|
VERSION=$(jq -r '.version' version_info.json)
|
||||||
release_name="Beta $VERSION"
|
release_name="Beta $VERSION"
|
||||||
@ -8,4 +10,4 @@ tag_name="v$VERSION"
|
|||||||
#write variables to github env
|
#write variables to github env
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
echo "release_name=$release_name" >> $GITHUB_ENV
|
echo "release_name=$release_name" >> $GITHUB_ENV
|
||||||
echo "tag_name=$tag_name" >> $GITHUB_ENV
|
echo "tag_name=$tag_name" >> $GITHUB_ENV
|
||||||
|
4
.github/workflows/update_packages.sh
vendored
4
.github/workflows/update_packages.sh
vendored
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
OS=$NAME
|
OS=$NAME
|
||||||
@ -20,4 +22,4 @@ case $OS in
|
|||||||
*)
|
*)
|
||||||
echo "Operating system is not recognized."
|
echo "Operating system is not recognized."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user