Skip to content

Fix bump-deps workflow YAML parser error#38

Merged
nieprzecietny merged 1 commit into
masterfrom
fix/bump-workflow-yaml
May 20, 2026
Merged

Fix bump-deps workflow YAML parser error#38
nieprzecietny merged 1 commit into
masterfrom
fix/bump-workflow-yaml

Conversation

@nieprzecietny
Copy link
Copy Markdown
Member

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:

(Line: 39, Col: 14): Unexpected symbol: '0'''. Located at position 43 within expression: inputs.allowed-licenses || ''MIT,Apache-2.0''

Triggering the workflow (manually or via cron) currently fails. This PR lands the fix on its own.

Changes

  • Hoist defaults to job-level env: (ALLOWED_LICENSES, DRY_RUN) — PowerShell reads plain $env:VAR, no ${{ }} interpolation inside the run: body.
  • Use github.event.inputs.* (defined on workflow_dispatch, null on schedule) so the || fallback resolves cleanly on cron runs.
  • if: guards on Verify build / Create pull request now use env.DRY_RUN.
  • Rename $args$scriptArgs (PowerShell automatic-variable collision).

Test plan

  • Verified locally — file parses
  • After merge: gh workflow run .github/workflows/bump-deps.yml --field dry-run=true should succeed
  • Confirm scheduled run on next Monday 06:00 UTC executes without parser error

🤖 Generated with Claude Code

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
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.44%. Comparing base (5274719) to head (058b66d).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nieprzecietny nieprzecietny merged commit d0514f3 into master May 20, 2026
3 checks passed
@nieprzecietny nieprzecietny deleted the fix/bump-workflow-yaml branch May 20, 2026 12:02
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