Skip to content

Conversation

@plusplusoneplusplus
Copy link
Owner

Summary

Add condition to prevent GitHub Actions workflows from running when triggered by the github-actions[bot] user to prevent infinite loops and unnecessary runs from automated processes.

Changes Made

  • extension-ci.yml: Added if: ${{ github.actor != 'github-actions[bot]' }} to the test job
  • tests.yml: Added if: ${{ github.actor != 'github-actions[bot]' }} to the test job

Technical Details

This change prevents both CI workflows from executing when the triggering actor is github-actions[bot], which commonly occurs when:

  • Automated version bumps are pushed
  • Other automated workflows push commits
  • Bot-generated pull requests are created

Benefits

  • ✅ Prevents infinite loop scenarios with automated workflows
  • ✅ Reduces unnecessary CI resource usage
  • ✅ Maintains normal workflow execution for human-triggered events
  • ✅ Simple, targeted solution with minimal impact

Testing

  • Pre-commit hooks passed successfully
  • Changes are minimal and focused on workflow control logic
  • No impact on actual test execution when triggered by humans

Related Issues

This addresses potential workflow conflicts when automated processes trigger CI pipelines unnecessarily.


Created with GitHub Copilot

Add condition to skip workflow execution when github.actor is github-actions[bot]
to prevent infinite loops and unnecessary runs from automated processes.

- Add condition to extension-ci.yml test job
- Add condition to tests.yml test job

(GitHub Copilot)
@plusplusoneplusplus plusplusoneplusplus enabled auto-merge (squash) June 29, 2025 04:02
@plusplusoneplusplus plusplusoneplusplus merged commit 84b6a4b into main Jun 29, 2025
14 checks passed
@plusplusoneplusplus plusplusoneplusplus deleted the fix/prevent-github-actions-bot-workflows branch June 29, 2025 04:07
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