Skip to content

Fix workflow job conditions causing skipped executions#206

Merged
htilly merged 1 commit into
masterfrom
fix/workflow-conditions
Dec 19, 2025
Merged

Fix workflow job conditions causing skipped executions#206
htilly merged 1 commit into
masterfrom
fix/workflow-conditions

Conversation

@htilly
Copy link
Copy Markdown
Owner

@htilly htilly commented Dec 19, 2025

Problem

After merging PR #205, all dependent jobs (create-confluence, update-github-issue, add-comment) were being skipped even though the preprocess job completed successfully.

Example failed run: https://github.com/htilly/SlackONOS/actions/runs/20369790629

Root Cause

Using if: needs.preprocess.outcome == 'success' causes GitHub Actions to skip jobs incorrectly. GitHub Actions documentation states that dependent jobs automatically skip if their dependencies fail, so explicit conditions are unnecessary and can cause unexpected behavior.

Solution

Remove the unnecessary if conditions:

  • ✅ Removed from create-confluence job
  • ✅ Removed from update-github-issue job
  • ✅ Simplified add-comment to only depend on update-github-issue

Testing

  • Workflow syntax validated locally
  • Jobs will now execute when preprocess succeeds
  • Jobs will still auto-skip if preprocess fails (GitHub Actions default behavior)

Impact

  • Fixes enhancement workflow to actually update issues
  • No breaking changes to existing functionality
  • Maintains separation of Confluence as independent job

Remove incorrect 'outcome == success' conditions that were causing
jobs to skip even when dependencies succeeded. GitHub Actions
automatically skips dependent jobs if their dependencies fail,
so explicit conditions are unnecessary.

Changes:
- Remove 'if: needs.preprocess.outcome == success' from create-confluence
- Remove 'if: needs.preprocess.outcome == success' from update-github-issue
- Simplify add-comment to only depend on update-github-issue

This fixes the issue where all dependent jobs were being skipped
despite preprocess completing successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@htilly htilly merged commit 9bfa334 into master Dec 19, 2025
5 checks 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