Update .forgejo/workflows/release.yaml
Some checks failed
Run Integration Tests / test (push) Failing after 36s

This commit is contained in:
Internet Addict 2025-06-15 05:54:26 +00:00
parent fe0d80007f
commit 9160955cfa

View file

@ -11,9 +11,25 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4
- name: Check Go version
- name: Install latest Go
run: |
go version
echo "📡 Fetching latest Go version string from go.dev..."
GO_FULL=$(curl -sSL https://go.dev/VERSION?m=text | head -n1)
echo "🔍 Cleaned version: $GO_FULL"
ARCHIVE="${GO_FULL}.linux-amd64.tar.gz"
curl -LO "https://go.dev/dl/${ARCHIVE}"
mkdir -p "$HOME/.local/go"
tar -C "$HOME/.local/go" --strip-components=1 -xzf "$ARCHIVE"
echo "$HOME/.local/go/bin" >> $GITHUB_PATH
echo "✅ Go installed locally to $HOME/.local/go"
"$HOME/.local/go/bin/go" install ./cmd/qgato
- name: Check Go version
run: go version
- name: Extract version from version.txt
id: version