Latest
This commit is contained in:
parent
cc5f664bbe
commit
68bfc8200e
1 changed files with 10 additions and 2 deletions
10
software.yml
10
software.yml
|
@ -3201,7 +3201,7 @@ softwarePackages:
|
||||||
sudo mkdir -p /usr/local/etc/branding
|
sudo mkdir -p /usr/local/etc/branding
|
||||||
sudo cp -f "$HOME/.local/etc/branding/logo-color-256x256.png" /usr/local/etc/branding/logo-color-256x256.png
|
sudo cp -f "$HOME/.local/etc/branding/logo-color-256x256.png" /usr/local/etc/branding/logo-color-256x256.png
|
||||||
sudo mkdir -p /usr/local/share/sounds
|
sudo mkdir -p /usr/local/share/sounds
|
||||||
rsync -rtvp "${XDG_DATA_HOME:-$HOME/.local/share}/sounds/"* /usr/local/share/sounds
|
sudo rsync -rtvp "${XDG_DATA_HOME:-$HOME/.local/share}/sounds/" /usr/local/share/sounds
|
||||||
if command -v apt-get > /dev/null; then
|
if command -v apt-get > /dev/null; then
|
||||||
sudo apt install python-dbus
|
sudo apt install python-dbus
|
||||||
fi
|
fi
|
||||||
|
@ -12754,7 +12754,15 @@ softwarePackages:
|
||||||
logg info "The GitHub Actions runner installation is not present at $GH_RUNNER_PATH"
|
logg info "The GitHub Actions runner installation is not present at $GH_RUNNER_PATH"
|
||||||
fi
|
fi
|
||||||
script: |
|
script: |
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/private.sh" ]; then
|
||||||
|
source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/private.sh"
|
||||||
|
fi
|
||||||
|
if [ -n "$GITHUB_TOKEN" ]; then
|
||||||
RELEASES="$(curl -sSL --compressed --header "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/actions/runner/releases/latest")"
|
RELEASES="$(curl -sSL --compressed --header "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/actions/runner/releases/latest")"
|
||||||
|
else
|
||||||
|
RELEASES="$(curl -sSL --compressed "https://api.github.com/repos/actions/runner/releases/latest")"
|
||||||
|
fi
|
||||||
LATEST_VERSION="$(echo "$RELEASES" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$')"
|
LATEST_VERSION="$(echo "$RELEASES" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$')"
|
||||||
ARCHITECTURE="$(uname -m | sed 's/86_//' | sed 's/v7l//')"
|
ARCHITECTURE="$(uname -m | sed 's/86_//' | sed 's/v7l//')"
|
||||||
OS_FAMILY="$(test -d /Applications && echo osx || echo linux)"
|
OS_FAMILY="$(test -d /Applications && echo osx || echo linux)"
|
||||||
|
|
Loading…
Reference in a new issue