SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-08-15 21:36 UTC

kotlin-kmp-claude-agent-skills

Committed by mmiani. Update Category: Dependency Upgrades & Maintenance. Commit details: Skip the Claude workflows when no API key is configured. This update refreshes dependencies and build configuration.

mmiani 939786c mmiani/kotlin-kmp-claude-agent-skills

CommitRaw commit message

Skip the Claude workflows when no API key is configured

Both workflows passed secrets.ANTHROPIC_API_KEY straight to the action, so
a repository without that secret failed the check rather than skipping it.
Every prior PR happened to modify the workflow files, which makes the
action skip itself with a workflow-validation notice, so this went unseen
until the first PR that left them alone.

secrets is not readable from a job-level `if`, so each job now surfaces the
presence of the key as an env value and the action step gates on it. A skip
writes a line to the step summary saying why.

The env block sits before the existing `if:` so the fix workflow's
trusted-commenter condition, which the test suite matches from `if: |`
through to `steps:`, is unchanged. Both workflow tests still pass.

Repositories that install these workflows and set the key are unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>