Skip to content

fix(ci): stop storybook oversight workflows failing with "No jobs were run" - #1585

Merged
jordmccord merged 2 commits into
mainfrom
fix/storybook-oversight-no-jobs-were-run
Sep 7, 2026
Merged

fix(ci): stop storybook oversight workflows failing with "No jobs were run"#1585
jordmccord merged 2 commits into
mainfrom
fix/storybook-oversight-no-jobs-were-run

Conversation

@jordmccord

Copy link
Copy Markdown
Collaborator

Summary

  • Both react-native-storybook-oversight.yml and react-storybook-oversight.yml only declared a pull_request trigger, but something (likely an org-level required-workflow/ruleset enforcement) also invokes them on push. Confirmed via the Actions API: every recent run of both workflows has event: push and 0 jobs.
  • Since push never matches a pull_request-only trigger, every commit produced a zero-job failing run and a "No jobs were run" email.
  • Fix: add a push trigger to both, and move the packages/react(-native)/** path check from the trigger-level paths: filter into an in-job dorny/paths-filter step, gating the setup/build/lint steps on its output. A job now always registers (so the forced push invocation always finds one), while the actual work still only runs when relevant files changed.

Test plan

  • Confirm this PR's own pull_request run for react-storybook-oversight.yml / react-native-storybook-oversight.yml only executes the gated steps if packages/react/** / packages/react-native/** changed (neither did in this PR, so steps should show as skipped, not absent).
  • After merge, watch the next few pushes to main/feature branches to confirm no more "No jobs were run" emails.

…e run"

Both workflows only declared a pull_request trigger, but something forces
them to also run on push (confirmed via the Actions API: every recent run
has event=push and 0 jobs). Since push never matches a pull_request-only
trigger, every commit produced a zero-job failing run and an email.

Add a push trigger and move the packages/react(-native)/** path check
from the trigger-level paths filter into an in-job dorny/paths-filter
step, gating the build/lint steps on its output. This guarantees a job
always registers while still skipping the expensive work when unrelated
files change.
Copilot AI lite review requested due to automatic review settings September 7, 2026 16:09
@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b8a25cc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new dorny/paths-filter step needs pull-requests: read permissions for PR events and more git history than the default checkout depth to work reliably on push events.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the two Storybook “oversight” GitHub Actions workflows so they no longer fail with “No jobs were run” when invoked on push (e.g. via org rulesets), while still skipping the expensive setup/build/lint work when no relevant package files changed.

Changes:

  • Add a push trigger to both oversight workflows so a job always registers when invoked by push.
  • Move the packages/react/** and packages/react-native/** change detection from trigger-level paths: into an in-job dorny/paths-filter gate, skipping work when irrelevant.
File summaries
File Description
.github/workflows/react-storybook-oversight.yml Adds push trigger and gates steps using dorny/paths-filter for packages/react/**.
.github/workflows/react-native-storybook-oversight.yml Adds push trigger and gates steps using dorny/paths-filter for packages/react-native/**.
Review details

Suppressed comments (2)

.github/workflows/react-native-storybook-oversight.yml:25

  • dorny/paths-filter uses the GitHub REST API on pull_request events and requires pull-requests: read permission; with the current permissions: contents: read the filter step can fail with 403 and break the workflow.
      - name: Check for react-native changes
        id: filter
        uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3

.github/workflows/react-storybook-oversight.yml:24

  • dorny/paths-filter uses the GitHub REST API on pull_request events and requires pull-requests: read permission; with the current permissions: contents: read the filter step can fail with 403 and break the workflow.
      - name: Check for react changes
        id: filter
        uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/react-native-storybook-oversight.yml
Comment thread .github/workflows/react-storybook-oversight.yml
…ths-filter

Per Copilot review on #1585: dorny/paths-filter needs pull-requests:read
to query PR diffs on pull_request events, and the default checkout
fetch-depth of 1 is often insufficient for it to compute the diff/merge
base reliably on push events. Bump to fetch-depth: 20.
@jordmccord
jordmccord merged commit 93d15c2 into main Sep 7, 2026
7 checks passed
@jordmccord
jordmccord deleted the fix/storybook-oversight-no-jobs-were-run branch September 7, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants