Fix bump-deps workflow YAML parser error#38
Merged
Conversation
PR #37's squash merge landed an earlier draft of this workflow. The inline ${{ inputs.allowed-licenses || ''MIT,Apache-2.0'' }} expression inside a multi-line PowerShell run: block fails GitHub Actions YAML parsing with: (Line: 39, Col: 14): Unexpected symbol: '0'''. Located at position 43 within expression: inputs.allowed-licenses || ''MIT,Apache-2.0'' Fix: - Hoist defaults to job-level env: so PowerShell reads plain $env:VAR without any ${{ }} interpolation inside the script body. - Use github.event.inputs.* (defined for workflow_dispatch, null on cron) so the || fallback works. - Switch the Verify build / Create pull request guards to env.DRY_RUN. - Rename $args -> $scriptArgs (PowerShell auto-variable collision).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #38 +/- ##
==========================================
+ Coverage 54.62% 56.44% +1.82%
==========================================
Files 101 101
Lines 3405 2877 -528
Branches 294 294
==========================================
- Hits 1860 1624 -236
+ Misses 1464 1172 -292
Partials 81 81 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #37's squash merge landed an earlier draft of
.github/workflows/bump-deps.yml. The follow-up fix commit was pushed to that branch but never merged. As a result master's workflow currently fails to parse with:Triggering the workflow (manually or via cron) currently fails. This PR lands the fix on its own.
Changes
env:(ALLOWED_LICENSES,DRY_RUN) — PowerShell reads plain$env:VAR, no${{ }}interpolation inside therun:body.github.event.inputs.*(defined onworkflow_dispatch,nullonschedule) so the||fallback resolves cleanly on cron runs.if:guards onVerify build/Create pull requestnow useenv.DRY_RUN.$args→$scriptArgs(PowerShell automatic-variable collision).Test plan
gh workflow run .github/workflows/bump-deps.yml --field dry-run=trueshould succeed🤖 Generated with Claude Code