Skip to content

generate_gha: omit empty needs for first-stage jobs - #170

Merged
traversaro merged 1 commit into
RoboStack:masterfrom
Tobias-Fischer:fix/gha-empty-needs
Oct 10, 2026
Merged

traversaro merged 1 commit into
RoboStack:masterfrom
Tobias-Fischer:fix/gha-empty-needs

Conversation

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

Jobs of the first stage were emitted with needs: [], which actionlint rejects ("needs" section should not be empty [syntax-check]). needs is now only written when there is a previous stage (Unix and Windows pipelines); later stages are unchanged.

Verified: new test test_only_later_stages_declare_needs (fails before, passes after); full vinca test suite passes (262 passed); actionlint on a generated two-stage workflow reports the error before and is clean after.

🤖 Generated with Claude Code

actionlint rejects `needs: []` ("needs section should not be empty"), which
every job of the first stage got. Only emit needs when there is a previous stage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@traversaro
traversaro merged commit 631038c into RoboStack:master Oct 10, 2026
3 checks passed
@Tobias-Fischer
Tobias-Fischer deleted the fix/gha-empty-needs branch October 10, 2026 19:57
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