Skip to content

chore(ci): only release after CI on main passes #113

chore(ci): only release after CI on main passes

chore(ci): only release after CI on main passes #113

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: CI
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
GOPROXY: direct
steps:
- uses: actions/checkout@v4
- uses: cashapp/activate-hermit@v1
- run: |
find . -name go.mod | grep -v /testdata | xargs -n1 dirname | while read dir; do (
cd "$dir"
go mod tidy
go test -v ./...
); done
git diff
lint:
name: Lint
runs-on: ubuntu-latest
env:
GOPROXY: direct
steps:
- uses: actions/checkout@v4
- uses: cashapp/activate-hermit@v1
- run: |
find . -name go.mod | grep -v /testdata | xargs -n1 dirname | while read dir; do (
cd "$dir"
go mod tidy
golangci-lint run
); done
git diff
release:
name: Release
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release.yml

Check failure on line 41 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yml" -> "./.github/workflows/release.yml" (source branch with sha:b4e7f4882ea433db3cbf28d629df6c6084b18f7a) : secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
needs: ["test", "lint"]
secrets: inherit