Fix PowerShell variable expansion in Windows release scripts

What does this MR do and why?

Fix PowerShell variable expansion in Windows release scripts

The GitLab Runner was prematurely expanding PowerShell variables (e.g., $env:CI_JOB_TOKEN, $glabVersionOutput) before they reached the PowerShell interpreter, causing syntax errors (https://gitlab.com/furkanayhan/test-project/-/jobs/10340950594).

This change escapes all PowerShell variables with $$ to prevent the runner from interpreting them as shell variables, ensuring they are passed through to PowerShell intact.

References

Jobs with release keyword fail on Windows with ... (cli#7882 - closed)

Screenshots or screen recordings

Before After
Screenshot_2025-06-13_at_13.15.38 Screenshot_2025-06-13_at_13.15.43

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Furkan Ayhan

Merge request reports

Loading