Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: PR Plugin Gate
on:
pull_request:
paths:
- '.github/workflows/**'
- 'registry.json'
- 'withdrawn.json'
- 'scripts/**'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -68,7 +76,7 @@ jobs:
node scripts/build-index.mjs --check $extra --report pr-report.md

- name: Post gate report comment on PR
if: always() && hashFiles('pr-report.md') != ''
if: always() && hashFiles('pr-report.md') != '' && github.event.pull_request.head.repo.full_name == github.repository
uses: actions/github-script@v7
with:
script: |
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,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
Expand Down
Loading