Skip to content

Workflow file for this run

name: CI and Release
on:
merge_group:
push:
branches:
- main
tags:
- "v*"
pull_request:
env:
GO_VERSION: '1.21'
jobs:
go:
uses: ./.github/workflows/go-ci.yml
with:
GO_VERSION: ${{ env.GO_VERSION }}

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

View workflow run for this annotation

GitHub Actions / CI and Release

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 19, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GO_VERSION
publish:
needs: go
uses: ./.github/workflows/publish.yml
release:
name: Release
needs: go
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}