From 10c1cfc6a7f00e0dc0e0642d631e077e010b94a7 Mon Sep 17 00:00:00 2001 From: Andrey Oblivantsev Date: Wed, 19 Aug 2026 11:12:58 +0100 Subject: [PATCH] ci: node16-safe actions + GitHub-only gates for Gitea mirror (#25) The Gitea act_runner runs action JS in node:16-bullseye; setup-go@v5 crashes with 'ReferenceError: ReadableStream is not defined'. Gitea discovers .github/workflows too, so: - setup-go@v5 -> @v4 (node16-safe, fine on GitHub) - gate GoReleaser (release.yml) + release-please jobs to github.server_url == https://github.com so the GitHub CD never runs on the Gitea mirror (GoReleaser/release-please are GitHub-release-centric) --- .github/workflows/release-please.yml | 1 + .github/workflows/release.yml | 1 + .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 158c378..e5f8366 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,6 +14,7 @@ permissions: jobs: release-please: name: Release Please + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - name: Run release-please diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f77ace4..4553864 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ permissions: jobs: goreleaser: name: GoReleaser + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: # Always clone default branch first. workflow_dispatch often races with diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e8e58b..a5561c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} cache: true