name: better-setup-just description: Install a pinned just binary statically from its GitHub release asset — no GitHub API call and no token, so it works on Forgejo/act runners where the runner's GITHUB_TOKEN is an instance token (upstream setup-just probes api.github.com and fails: Bad credentials). inputs: just-version: description: Exact just version to install (x.y.z). default: "1.40.0" runs: using: composite steps: - shell: bash run: | set -euo pipefail v="${{ inputs.just-version }}" case "$(uname -m)" in x86_64|amd64) arch=x86_64 ;; aarch64|arm64) arch=aarch64 ;; *) echo "better-setup-just: unsupported arch $(uname -m)" >&2; exit 1 ;; esac curl -fsSL "https://github.com/casey/just/releases/download/${v}/just-${v}-${arch}.tar.gz" \ | tar -xz -C /usr/local/bin just just --version