Skip to content

chore: Add release-please support. (#103) #1

chore: Add release-please support. (#103)

chore: Add release-please support. (#103) #1

name: Release Please
on:
push:
branches:
- main
jobs:
release-please:
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
runs-on: ubuntu-latest
permissions:
id-token: write # Needed if using OIDC to get release secrets.
contents: write # Contents and pull-requests are for release-please to make releases.
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
ci:
needs: ['release-please']
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
uses: ./.github/workflows/ci.yml

Check failure on line 29 in .github/workflows/release-please.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-please.yml

Invalid workflow file

error parsing called workflow ".github/workflows/release-please.yml" -> "./.github/workflows/ci.yml" (source branch with sha:5fb7944e52652f71c13ca4b12c7e438b30e6608b) : workflow is not reusable as it is missing a `on.workflow_call` trigger
publish:
needs: ['release-please', 'ci']
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
uses: ./.github/workflows/publish.yml
with:
dry_run: false
tag: ${{ needs.release-please.outputs.tag_name }}