This repository holds reusable workflows and shared configuration.
0merUfuk/.github/.github/workflows/marketing-os-stage.yml is a reusable workflow that stages a marketing approval issue whenever a release is published.
- Go binary for
marketing-osmust already be built at{marketing_os_root}/bin/marketing-os. - A valid
config.yamlmust exist at{marketing_os_root}/config.yaml. - Environment variables
OPENAI_API_KEYandGITHUB_TOKENmust be available to the action.
Create .github/workflows/marketing-os-release.yml:
name: Marketing approval on release
on:
release:
types: [published]
jobs:
stage:
uses: 0merUfuk/.github/.github/workflows/marketing-os-stage.yml@main
with:
marketing_os_root: /Users/omerufuk/repos/marketing-os
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}The product_id input defaults to the repository name.
See .github/marketing-os/release-trigger.example.yml for a full example.