Skip to content

Commit c2a4250

Browse files
committed
When redirecting envvars/%path%, use bash
The default (powershell) for Windows doesn't seem to be working for adding envvar/path
1 parent 36b33b9 commit c2a4250

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- name: 🤘 checkout
1313
uses: actions/checkout@v2
1414
- name: 🖉 version
15-
run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$($env:GITHUB_RUN_NUMBER)" >> $GITHUB_ENV
15+
run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
16+
shell: bash
1617
- name: ⚙ dotnet 5.0.x
1718
uses: actions/setup-dotnet@v1
1819
with:
@@ -29,11 +30,13 @@ jobs:
2930
run: dotnet tool update -g dotnet-vs
3031
- name: 🔍 vs 16.8+
3132
run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV
33+
shell: bash
3234
- name: 🔽 vs community
3335
run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
3436
if: env.MSB == ''
3537
- name: ≥ msbuild
3638
run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH
39+
shell: bash
3740
- name: 🙏 build
3841
run: msbuild -r -p:versionsuffix=$($env:VERSION_SUFFIX)
3942
- name: 🧪 test

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
run: dotnet tool update -g dotnet-vs
3434
- name: 🔍 vs 16.8+
3535
run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV
36+
shell: bash
3637
- name: 🔽 vs community
3738
run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
3839
if: env.MSB == ''
3940
- name: ≥ msbuild
4041
run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH
42+
shell: bash
4143
- name: 🙏 build
4244
run: msbuild -r -p:version=$($env:VERSION)
4345
- name: 🧪 test

0 commit comments

Comments
 (0)