diff --git a/docs/setup.md b/docs/setup.md index 8c535d4..beea781 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -17,6 +17,13 @@ Result: - branch and PR creation use the repo `GITHUB_TOKEN` - private SHPIT formula refreshes work only if the repo can read `SHPIT_GH_TOKEN` - there is no separate publish workflow because the tap repo itself is the distribution surface +- upstream `tabex` and `osyrra` release workflows can also trigger this workflow automatically with `gh workflow run version-bumps.yml`, but that depends on `SHPIT_WORKFLOW_DISPATCH_TOKEN` being available in their Depot CI repo secrets + +## GitHub UI Links + +- create PAT: +- review active org PATs: +- manage org Actions secrets: ## SHPIT_GH_TOKEN @@ -31,6 +38,35 @@ gh secret set SHPIT_GH_TOKEN \ --body "$(gh auth token)" ``` +## SHPIT_WORKFLOW_DISPATCH_TOKEN + +Create a fine-grained PAT that can trigger workflow dispatches in: + +- `shpitdev/homebrew-tap` +- `shpitdev/pkgbuilds` + +Store that PAT as the GitHub org secret `SHPIT_WORKFLOW_DISPATCH_TOKEN` with `selected` visibility for these producer repos: + +- `shpitdev/tabex` +- `shpitdev/osyrra` + +Those producer release workflows run in Depot CI, so GitHub org secrets are not enough on their own. Mirror the same secret into Depot for each producer repo with one of these paths: + +```bash +cd /home/anandpant/Development/shpitdev/tabex +depot ci migrate secrets-and-vars -y + +cd /home/anandpant/Development/shpitdev/osyrra +depot ci migrate secrets-and-vars -y +``` + +Or add the Depot secrets directly: + +```bash +depot ci secrets add SHPIT_WORKFLOW_DISPATCH_TOKEN --repo shpitdev/tabex +depot ci secrets add SHPIT_WORKFLOW_DISPATCH_TOKEN --repo shpitdev/osyrra +``` + ## Local Operator Flow If you are logged into GitHub locally with `gh auth login`, you can run: