Skip to content

Commit

Permalink
When redirecting envvars/%path%, use bash
Browse files Browse the repository at this point in the history
The default (powershell) for Windows doesn't seem to be working for adding envvar/path
  • Loading branch information
kzu committed Nov 20, 2020
1 parent 36b33b9 commit c2a4250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v2
- name: 🖉 version
run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$($env:GITHUB_RUN_NUMBER)" >> $GITHUB_ENV
run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
shell: bash
- name: ⚙ dotnet 5.0.x
uses: actions/setup-dotnet@v1
with:
Expand All @@ -29,11 +30,13 @@ jobs:
run: dotnet tool update -g dotnet-vs
- name: 🔍 vs 16.8+
run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV
shell: bash
- name: 🔽 vs community
run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
if: env.MSB == ''
- name: ≥ msbuild
run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH
shell: bash
- name: 🙏 build
run: msbuild -r -p:versionsuffix=$($env:VERSION_SUFFIX)
- name: 🧪 test
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
run: dotnet tool update -g dotnet-vs
- name: 🔍 vs 16.8+
run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV
shell: bash
- name: 🔽 vs community
run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
if: env.MSB == ''
- name: ≥ msbuild
run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH
shell: bash
- name: 🙏 build
run: msbuild -r -p:version=$($env:VERSION)
- name: 🧪 test
Expand Down

0 comments on commit c2a4250

Please sign in to comment.