Skip to content

Comments

Convert GitHub Actions workflow shell steps to PowerShell for Windows runner#431

Merged
turbobobbytraykov merged 2 commits intobtraykov/tweak-build-workflowfrom
copilot/sub-pr-430
Feb 17, 2026
Merged

Convert GitHub Actions workflow shell steps to PowerShell for Windows runner#431
turbobobbytraykov merged 2 commits intobtraykov/tweak-build-workflowfrom
copilot/sub-pr-430

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The workflow was changed to run on windows-latest but shell steps still used bash syntax, causing compatibility issues.

Changes:

  • Apply very special configuration: Changed from sed to PowerShell Get-Content with -replace operator
  • Build project: Converted bash if [ ... ]; then ... fi to PowerShell if (...) { ... } syntax
  • Copy web.config to dist: Changed from cp to PowerShell Copy-Item cmdlet
  • All shell steps now explicitly specify shell: pwsh

Before:

- name: Apply very special configuration
  shell: bash
  run: |
    sed -i 's/build --configuration production/build --configuration production --base-href=\/angular-demos-dv\//g' package.json

After:

- name: Apply very special configuration
  shell: pwsh
  run: |
    ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: turbobobbytraykov <3358260+turbobobbytraykov@users.noreply.github.com>
Copilot AI changed the title [WIP] Change build runner from Ubuntu to Windows Convert GitHub Actions workflow shell steps to PowerShell for Windows runner Feb 17, 2026
@turbobobbytraykov turbobobbytraykov marked this pull request as ready for review February 17, 2026 16:47
@turbobobbytraykov turbobobbytraykov merged commit 97eba39 into btraykov/tweak-build-workflow Feb 17, 2026
@turbobobbytraykov turbobobbytraykov deleted the copilot/sub-pr-430 branch February 17, 2026 16:47
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.

2 participants