Skip to content

Commit 5969381

Browse files
committed
Use local install script instead of setup-state-tool action on Windows.
The published script uses a deprecated powershell command that no longer exists, which fails the install process.
1 parent fb78941 commit 5969381

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ jobs:
8181
- # === Install State Tool ===
8282
name: Install State Tool
8383
uses: ActiveState/setup-state-tool@v1
84+
if: runner.os != 'Windows'
85+
86+
- # === Install State Tool (Windows) ===
87+
name: Install State Tool (Windows)
88+
if: runner.os == 'Windows'
89+
shell: pwsh
90+
run: |
91+
Invoke-Expression -Command ".\installers\install.ps1 -n"
92+
echo "$env:LOCALAPPDATA\ActiveState\StateTool\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
93+
Invoke-Expression "$env:LOCALAPPDATA\ActiveState\StateTool\release\bin\state config set optin.unstable true"
8494
8595
- # === Setup ===
8696
name: Setup
@@ -262,7 +272,7 @@ jobs:
262272

263273
- # === Configure AWS credentials ==
264274
name: Configure AWS credentials
265-
uses: aws-actions/configure-aws-credentials@v2
275+
uses: aws-actions/configure-aws-credentials@v4
266276
with:
267277
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
268278
role-session-name: ${{ env.AWS_ROLE_SESSION_NAME }}
@@ -482,7 +492,7 @@ jobs:
482492

483493
- # === Configure AWS credentials ==
484494
name: Configure AWS credentials
485-
uses: aws-actions/configure-aws-credentials@v2
495+
uses: aws-actions/configure-aws-credentials@v4
486496
with:
487497
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
488498
role-session-name: ${{ env.AWS_ROLE_SESSION_NAME }}

0 commit comments

Comments
 (0)