Skip to content

fix: resolve GITHUB_OUTPUT invalid format when no source files changed - #126

Merged
vigri merged 1 commit into
ScanTailor-Advanced:masterfrom
vigri:fix/lint-workflow-count-output-format
Apr 17, 2026
Merged

fix: resolve GITHUB_OUTPUT invalid format when no source files changed#126
vigri merged 1 commit into
ScanTailor-Advanced:masterfrom
vigri:fix/lint-workflow-count-output-format

Conversation

@vigri

@vigri vigri commented Apr 17, 2026

Copy link
Copy Markdown
Member

Problem
When no source files changed, grep -c exits with code 1, triggering || echo 0. The trailing newline from echo breaks the $GITHUB_OUTPUT format:

Fix
Replace grep -c || echo 0 with an explicit empty-string check and use printf for clean key=value\n output.

Info
This PR is a cleaner rewrite of #125 with a tidy commit history.

@vigri
vigri merged commit cd626ef into ScanTailor-Advanced:master Apr 17, 2026
2 of 3 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