Skip to content

Commit

Permalink
CI Linux: prevent mkappimage auto upload
Browse files Browse the repository at this point in the history
mkappimage now tries to automatically upload the asset if it detects
running in GitHub CI, which is not the behavior we perhaps want because
it deletes and recreates our _continuous_ release.

See following failed run:
https://github.com/CESNET/UltraGrid/actions/runs/5575039257/jobs/10185765784

+ fixed `wget` presence check in `create-appimage.sh`
  • Loading branch information
MartinPulec committed Jul 18, 2023
1 parent e457ab8 commit 74d1bf7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data/scripts/Linux-AppImage/create-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fi

add_fonts

if command wget >/dev/null && wget -V | grep -q https; then
if command -v wget >/dev/null && wget -V | grep -q https; then
dl() {
wget -O - ${GITHUB_TOKEN+--header "Authorization: token $GITHUB_TOKEN"} "$1"
}
Expand Down Expand Up @@ -167,8 +167,9 @@ UPDATE_INFORMATION=
if [ $# -ge 1 ]; then
UPDATE_INFORMATION="-u zsync|$1"
fi
# shellcheck disable=SC2086 # word spliting of $UPDATE_INFORMATION is requested behavior
$mkappimage $UPDATE_INFORMATION $APPDIR
# shellcheck disable=SC1007,SC2086 # word spliting of
# $UPDATE_INFORMATION is a requested behavior
GITHUB_TOKEN= $mkappimage $UPDATE_INFORMATION $APPDIR

rm -rf $APPDIR tmpinstall
)
Expand Down

0 comments on commit 74d1bf7

Please sign in to comment.