mcaulifn/solcast

View on GitHub
.github/workflows/release.yaml

Summary

Maintainability
Test Coverage
---
name: Release
on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - id: release
        uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
        with:
          command: manifest
      - if: steps.release.outputs.release_created == 'true'
        name: Trigger Publish
        uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
        with:
          script: |
            github.rest.actions.createWorkflowDispatch({
              owner: context.repo.owner,
              repo: context.repo.repo,
              workflow_id: 'publish.yaml',
              ref: '${{ steps.release.outputs.tag_name }}',
            })