ci: follow host Go version in market workflows

This commit is contained in:
bvzrays committed 2026-12-02 14:06:20 +08:00
1 parent 554f6e5922
commit d879bdcdc4
2 files changed
+25 -10

No files matched your search

+13 -5
View File
@@ -3,6 +3,7 @@ name: PR Plugin Gate
on:
pull_request:
paths:
- '.github/workflows/**'
- 'registry.json'
- 'withdrawn.json'
- 'scripts/**'
@@ -30,17 +31,24 @@ jobs:
count=$(node -e "const r = JSON.parse(require('fs').readFileSync('registry.json','utf8')); console.log((r.plugins||[]).length)")
echo "count=$count" >> "$GITHUB_OUTPUT"
- name: Setup Go for reims-go doctor CLI
- name: Checkout Reims-Go CLI source
if: steps.reg.outputs.count != '0'
uses: actions/checkout@v4
with:
repository: Nwflower/Reims-Go
ref: main
path: reims-go
- name: Setup Go from Reims-Go go.mod
if: steps.reg.outputs.count != '0'
uses: actions/setup-go@v5
with:
go-version: '1.24'
go-version-file: reims-go/go.mod
- name: Build headless reims-go CLI from Nwflower/Reims-Go
- name: Build headless reims-go CLI
if: steps.reg.outputs.count != '0'
run: |
git clone --depth 1 https://github.com/Nwflower/Reims-Go.git /tmp/reims-go-src
cd /tmp/reims-go-src
cd reims-go
mkdir -p cmd/reims-doctor
cat <<'EOF' > cmd/reims-doctor/main.go
package main