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:
@@ -14,6 +14,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
release-please:
|
release-please:
|
||||||
name: Release Please
|
name: Release Please
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run release-please
|
- name: Run release-please
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
name: GoReleaser
|
name: GoReleaser
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Always clone default branch first. workflow_dispatch often races with
|
# Always clone default branch first. workflow_dispatch often races with
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
cache: true
|
cache: true
|
||||||
|
|||||||
Reference in New Issue
Block a user