Skip to content

Fix test workflow condition to run on pull requests#33

Merged
mu373 merged 1 commit intomainfrom
fix-test-workflow-pr-condition
Oct 3, 2025
Merged

Fix test workflow condition to run on pull requests#33
mu373 merged 1 commit intomainfrom
fix-test-workflow-pr-condition

Conversation

@mu373
Copy link
Owner

@mu373 mu373 commented Oct 3, 2025

What this PR fixes:

• The test workflow was configured to trigger on PRs but had a condition that prevented it from actually running

• The issue was github.event.head_commit only exists for push events, not pull request events

• Updated the condition to properly handle both push and pull request events

The change:

• Before: Condition always evaluated to false for PRs, skipping tests

• After: Properly checks PR titles for pull requests and commit messages for pushes, respecting ‘[skip ci]’ in both cases

@mu373 mu373 merged commit cb7cc9d into main Oct 3, 2025
1 check passed
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.

1 participant