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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user