Synvael/.github/scripts/run-selene.sh

15 lines
573 B
Bash
Executable file

#!/usr/bin/env bash
# Downloads a pinned selene release and lints the repository's Lua sources.
#
# selene publishes no maintained GitHub Action, so the linter binary is fetched per run. The version is pinned so that an upstream release cannot change CI results without a deliberate commit here.
set -euo pipefail
SELENE_VERSION="0.30.1"
SELENE_URL="https://github.com/Kampfkarren/selene/releases/download/${SELENE_VERSION}/selene-light-${SELENE_VERSION}-linux.zip"
curl -sL "$SELENE_URL" -o selene.zip
unzip -q selene.zip
chmod +x selene
./selene assets/scripts/ mods/