Skip to content

Conversation

@jas88
Copy link
Owner

@jas88 jas88 commented Jan 12, 2026

Summary

PRs created by GitHub Actions using GITHUB_TOKEN don't trigger other workflows (GitHub security feature to prevent recursive loops). This was causing native dependency update PRs (like #192) to not get CI coverage.

Changes

  1. .github/workflows/build.yml: Added workflow_dispatch trigger to enable manual/API triggering
  2. scripts/check-native-updates.sh: Added auto-trigger of Build workflow after dependency PR creation

Testing

After merging this PR:

  1. The Build workflow can be manually triggered via gh workflow run build.yml --ref <branch>
  2. Future dependency PRs will automatically trigger the Build workflow

Related

This fix will enable CI on #192 once merged.

High-level PR Summary

This PR fixes a CI coverage gap by enabling the Build workflow to be triggered for dependency update PRs that are auto-created by GitHub Actions. Since GitHub prevents workflows triggered by GITHUB_TOKEN from recursively triggering other workflows, the solution adds workflow_dispatch to the Build workflow configuration and updates the dependency update script to manually trigger the Build workflow after creating a PR.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 .github/workflows/build.yml
2 scripts/check-native-updates.sh

Need help? Join our Discord


Summary by cubic

Ensure CI runs on dependency PRs created by our GitHub Action by auto-triggering the Build workflow and allowing manual/API runs. Unblocks CI for PRs like #192.

  • Bug Fixes
    • Added workflow_dispatch to .github/workflows/build.yml for manual/API triggers.
    • Updated scripts/check-native-updates.sh to trigger the Build workflow after creating a dependency PR.

Written for commit 764cd6f. Summary will update on new commits.

PRs created by GitHub Actions using GITHUB_TOKEN don't trigger other
workflows (GitHub security feature). This adds:

1. workflow_dispatch trigger to build.yml enabling manual/API triggers
2. Auto-trigger of Build workflow after dependency PR creation

This ensures native dependency update PRs get CI coverage automatically.
@jas88 jas88 force-pushed the fix/auto-trigger-build-for-dependency-prs branch from c96eafd to 764cd6f Compare January 12, 2026 17:49
Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

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

Review by RecurseML

🔍 Review performed on 5d7cbd0..c96eafd

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (2)

.github/workflows/build.yml
scripts/check-native-updates.sh

@sonarqubecloud
Copy link

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

@jas88 jas88 enabled auto-merge (rebase) January 12, 2026 18:09
@jas88 jas88 merged commit d9ef45f into main Jan 12, 2026
5 checks passed
@jas88 jas88 deleted the fix/auto-trigger-build-for-dependency-prs branch January 12, 2026 18:16
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