Skip to content

Comments

ci: fix GitHub Actions expression syntax in release-on-main workflow#170

Merged
benvinegar merged 1 commit intomainfrom
fix/release-workflow-expression-quotes
Feb 24, 2026
Merged

ci: fix GitHub Actions expression syntax in release-on-main workflow#170
benvinegar merged 1 commit intomainfrom
fix/release-workflow-expression-quotes

Conversation

@benvinegar
Copy link
Member

Problem

GitHub Actions reports:

Invalid workflow file: .github/workflows/release-on-main.yml#L1
(Line: 271, Col: 13): Unexpected symbol: '""'. Located at position 27 within expression:
steps.bump.outputs.tag != "" && steps.dryrun.outputs.enabled == "true"

The Dry-run release summary step's if: condition used double quotes ("") for string literals. GitHub Actions expressions only support single quotes for strings.

Fix

Replace double quotes with single quotes on line 271 to match every other if: condition in the workflow:

# Before
if: steps.bump.outputs.tag != "" && steps.dryrun.outputs.enabled == "true"

# After
if: steps.bump.outputs.tag != '' && steps.dryrun.outputs.enabled == 'true'

Validation

  • yaml-lint — passes
  • actionlint — no errors (only optional shellcheck style hints)

The dry-run summary step used double quotes ("") in the if-expression,
which GitHub Actions expression parser does not support. Replace with
single quotes to match all other conditions in the workflow.

Validated with yaml-lint and actionlint (no errors, only shellcheck style hints).
@greptile-apps
Copy link

greptile-apps bot commented Feb 24, 2026

Greptile Summary

Fixed a syntax error in the GitHub Actions workflow by replacing double quotes with single quotes in an if condition expression. GitHub Actions expressions require single quotes for string literals. The change makes line 271 consistent with all other conditional statements in the workflow file.

Confidence Score: 5/5

  • This PR is completely safe to merge with no risk
  • The change is a trivial syntax fix that corrects an invalid GitHub Actions expression. It replaces double quotes with single quotes, which is the required syntax. The fix is validated by the PR author with yaml-lint and actionlint, and is consistent with all other conditional expressions in the same file. This is a one-line change with zero logical impact.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/release-on-main.yml Fixed GitHub Actions expression syntax by replacing double quotes with single quotes in if condition

Last reviewed commit: ef35396

@benvinegar benvinegar merged commit e2f9889 into main Feb 24, 2026
10 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