Skip to content

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

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

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

Workflow file for this run

# Triggered once CI on main passes
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 5 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
description: "GitHub Token"
required: true
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cashapp/activate-hermit@v1
- uses: charlesthomas/github-action-svu@v1.0.5+2.1.1
id: svu
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git tag ${{ steps.svu.outputs.next }}
goreleaser release --fail-fast
git push --tags
if: ${{ steps.svu.outputs.changed }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}