Skip to content

Conversation

@plusplusoneplusplus
Copy link
Owner

Problem

GitHub Actions workflows created by bots (like github-actions[bot]) don't automatically trigger other workflows for security reasons. This causes automated PRs (like version bumps) to get stuck in a "blocked" state with tests showing "Expected — Waiting for status to be reported".

Affected PRs:

Solution

This PR adds manual test workflow triggers to both automated PR creation workflows:

Changes Made

  1. .github/workflows/daily-version.yml:

    • Fixed GitHub Actions expression syntax issue (${{ env.NEW_VERSION }}$NEW_VERSION)
    • Added manual gh workflow run tests.yml trigger before enabling auto-merge
    • Added 10-second delay to allow workflow to start
  2. .github/workflows/package-extension.yml:

    • Added manual gh workflow run tests.yml trigger before enabling auto-merge
    • Added 10-second delay to allow workflow to start

Technical Details

  • Root Cause: GitHub prevents workflows from auto-triggering on bot-created PRs to prevent infinite loops and security issues
  • Fix: Manually invoke the test workflow using gh workflow run tests.yml --ref <branch>
  • Safety: Added delay ensures workflow starts before auto-merge is enabled

Testing

  • ✅ Pre-commit hooks passed (trailing whitespace, YAML validation)
  • ✅ Workflow syntax validated
  • ✅ No breaking changes to existing functionality

Impact

  • Immediate: Fixes currently blocked PR chore: bump version to v0.1.2 #400
  • Future: Prevents all automated PRs from getting stuck without test execution
  • Safety: Maintains all existing test requirements and auto-merge safety checks

Related Issues

  • Resolves the issue described in the GitHub Actions logs where tests show "Expected — Waiting for status to be reported"
  • Enables proper CI/CD flow for automated version bumps and package releases

- Fix issue where GitHub Actions bot-created PRs don't automatically trigger test workflows
- Add manual test workflow invocation in daily-version.yml before auto-merge
- Add manual test workflow invocation in package-extension.yml before auto-merge
- Include 10-second delay to allow workflows to start before enabling auto-merge
- Resolves blocked PR state where tests show 'Expected — Waiting for status to be reported'

Fixes automated PR test execution (GitHub Copilot)
@plusplusoneplusplus plusplusoneplusplus enabled auto-merge (squash) June 29, 2025 03:07
@plusplusoneplusplus plusplusoneplusplus merged commit 10b49ce into main Jun 29, 2025
14 checks passed
@plusplusoneplusplus plusplusoneplusplus deleted the fix/automated-pr-test-triggers branch June 29, 2025 03:13
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