aminedjeghri/personal-os-setup/github-actions-trigger-gotchas

Claude Code and agent skill by aminedjeghri/personal-os-setup

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when GitHub Actions triggers fire wrong or not at all.

Install

npx vskill@latest install aminedjeghri/personal-os-setup/github-actions-trigger-gotchas

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as aminedjeghri/personal-os-setup/github-actions-trigger-gotchas.

GitHub Actions trigger & scheduling gotchas

False runs on Renovate/branch pushes, duplicated checks, jobs cancelled by concurrency, or a step that silently never executes. Diagnose with real evidence before editing YAML:

bash
gh run list --branch <branch> --limit 20 --json workflowName,event,headBranch,createdAt,conclusion
gh api repos/O/R/actions/runs/<run-id>/jobs --jq '.jobs[]|"\(.name) \(.conclusion)"'
gh api repos/O/R/actions/runs/<run-id>/jobs --jq '.jobs[]|select(.name|test("X"))|.steps[]|"\(.number) \(.name) -> \(.conclusion)"'
gh pr checks <n> # duplicate identical check names = two runs (push + pull_request)
gh api repos/O/R/branches/main/protection ; gh api repos/O/R/rulesets # what actually gates merges

1. push + paths fires for unrelated diffs after a force-push

On a rebase/force-push (Renovate does this), GitHub evaluates the push path filter against everything the branch gained relative to its previous tip — including files main picked up since the branch was created. Symptom: an add-on CI fires on a renovate/* push whose PR only touches one unrelated folder.

Fix: scope the push trigger to the branch that matters (push: branches: [main]), keep validation on pull_request (whose paths uses the PR diff, correctly). Do not add paths-ignore hacks.

Same pattern causes double CI on every PR (push + pull_request both match). Pick one trigger — usually drop push unless a push without a PR must be validated. Check first whether protection/rulesets require those checks (often none). After changing triggers, verify with gh run list --branch <branch>: no push-event run should appear on the branch you push.

2. Job-level concurrency cancels a run's OWN sibling jobs

jobs.<id>.concurrency with the default queue holds one running + one pending per group: each newly queued job cancels the pending one (cancel-in-progress: false only protects the running job). With N jobs starting together (cron, fan-out), all but ~2 get cancelled every run. queue: max (up to 100 pending) fixes it, but an unsupported key invalidates the whole workflow file (all runs stop), so for a critical job prefer mechanisms with no new syntax.

Preferred fix for parallel jobs pushing to the same ref: a needs: chain + if: always() (deterministic ordering, a failure in one job doesn't skip the rest).

3. A step gated on a step id that does not exist never runs

if: steps.changed.outputs.changed == 'true' where the producing step has no `id: changed` (or the id is misspelled) evaluates false forever. Symptom: the step shows skipped in every run, even when its own guard script computes true; downstream steps gated on its outputs are skipped too — and a "success" workflow hides it.

Verify before blaming logic: grep -n 'id:' .github/workflows/x.yml, then demand a run where the condition must have been true (find a commit that changed the file the guard tests) and check that step's conclusion.

4. Rules of thumb

  • Never trust a workflow file's intent comments — read the triggers, the if: guards and the step ids.
  • A red nightly run nobody noticed means the fix must also fail loudly (annotations/::error::) and be verified

with a workflow_dispatch run once merged.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
624
Repository forks
51
7-day trend score
32

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aminedjeghri/personal-os-setup/github-actions-trigger-gotchas/badge)](https://verified-skill.com/skills/aminedjeghri/personal-os-setup/github-actions-trigger-gotchas)

Something wrong with this skill or its page? Tell us.