ci: fix release-please auth and assemble/ingest workflows#9
Merged
Conversation
The release workflow failed with "GitHub Actions is not permitted to create or approve pull requests" — it used the default GITHUB_TOKEN. Mint a GitHub App token (actions/create-github-app-token@v3) and pass it to release-please, matching the canonical pal-mcp-server pattern. The RELEASE_PLEASE_APP_ID var + RELEASE_PLEASE_PRIVATE_KEY secret are provisioned by gitops for repos flagged release_please = true (added in a companion gitops PR). The assemble workflow failed with "a bin target must be available for cargo run": it ran -p niinku-pipeline, but that crate is a library — the niinku binary lives in niinku-cli. It also never installed libvoikko (the whole workspace links it via crates/sources build.rs), wrote no output file (assemble with no --output prints to stdout), and its create-pull-request step would hit the same PR-permission wall. Fix all four: correct package, install libvoikko-dev + voikko-fi, fetch the OpenSubtitles corpus, write --output data/wordlist.combined, and reuse the App token for the PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ingest.yml ran `-p niinku-pipeline -- ingest --sources X,Y`. That crate is a library (no bin), and the CLI has no `--sources` interface — it only implements `ingest mastodon`. Rewrite the workflow to the actual path: mastodon ingest via `just ingest-mastodon` with instance/count inputs, correct package, and the libvoikko build dependency. opensubtitles is fetched with `just download`; urbaani is a committed snapshot — neither is a CLI ingest. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the three broken CI workflows.
release— "GitHub Actions is not permitted to create or approve pull requests"Used the default
GITHUB_TOKEN. Now mints a GitHub App token viaactions/create-github-app-token@v3and passes it torelease-please, matching the canonicalpal-mcp-serverpattern.assemble—a bin target must be available for cargo run-p niinku-pipeline(a library); theniinkubinary is inniinku-cli.libvoikko-dev(the whole workspace links it viacrates/sources/build.rs).assemblewith no--outputprints to stdout) → empty PR.create-pull-requestwould hit the same PR-permission wall.Fixed: correct package, install
libvoikko-dev+voikko-fi,just downloadthe OpenSubtitles corpus,--output data/wordlist.combined, App token for the PR.ingest— latent breakageRan
-p niinku-pipeline -- ingest --sources X,Y— wrong package and an interface the CLI doesn't implement (it only doesingest mastodon). Realigned tojust ingest-mastodonwithinstance/countinputs.Dependency
Requires laurigates/gitops PR enabling
release_please = truefor niinku to provisionRELEASE_PLEASE_APP_ID+RELEASE_PLEASE_PRIVATE_KEY. Merge that first, then re-runrelease.yml. The release-please App must also be installed on niinku (GitHub Settings → Applications).This PR's own CI (
fmt + clippy + test) is unaffected.🤖 Generated with Claude Code