Browse Source

fix pwsh 2

pull/125/head
inv2004 4 years ago
parent
commit
f8db70a500
  1. 6
      .github/workflows/build.yml

6
.github/workflows/build.yml

@ -13,13 +13,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build 5.x
shell: pwsh
# shell: pwsh
run: |
$BUILD_DIR = "Sophia-"
if ($env:GITHUB_REF -eq "refs/heads/master") {
$BUILD_DIR .= "master"
$BUILD_DIR += "master"
} else {
$BUILD_DIR .= ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’
$BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’
}
Get-ChildItem Env:
mkdir $BUILD_DIR

Loading…
Cancel
Save