Skip to content

Commit 1f87fb1

Browse files
authored
Merge pull request #1433 from compas-dev/dislike_pwsh
Dislike pwsh
2 parents fbf82e4 + 319ca08 commit 1f87fb1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish_yak.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ jobs:
5757
- name: Publish to Yak server (Rhino 7)
5858
shell: pwsh
5959
run: |
60+
$test_flag = if ($Env:TEST_FLAG) { $Env:TEST_FLAG } else { "" }
6061
$file = Get-ChildItem -Path dist\yak_package\*rh7*.yak -File | Select-Object -ExpandProperty Name
61-
invoke publish-yak $Env:TEST_FLAG -y dist\yak_package\$file
62+
$command = "invoke publish-yak -y dist\yak_package\$file $test_flag".Trim()
63+
Invoke-Expression $command
6264
env:
6365
YAK_TOKEN: ${{ secrets.YAK_DF_TOKEN }}
6466

@@ -73,7 +75,9 @@ jobs:
7375
- name: Publish to Yak server (Rhino 8)
7476
shell: pwsh
7577
run: |
78+
$test_flag = if ($Env:TEST_FLAG) { $Env:TEST_FLAG } else { "" }
7679
$file = Get-ChildItem -Path dist\yak_package\*rh8*.yak -File | Select-Object -ExpandProperty Name
77-
invoke publish-yak $Env:TEST_FLAG -y dist\yak_package\$file
80+
$command = "invoke publish-yak -y dist\yak_package\$file $test_flag".Trim()
81+
Invoke-Expression $command
7882
env:
7983
YAK_TOKEN: ${{ secrets.YAK_DF_TOKEN }}

0 commit comments

Comments
 (0)