Skip to content

Commit ebe9ea9

Browse files
committed
update path
1 parent 65a26fb commit ebe9ea9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cmake . -B build -DFMU4CPP_BUILD_TESTS=ON -DFMU4CPP_BUILD_EXAMPLES=ON
1919
cmake --build build
2020
21-
- name: "Read model name"
21+
- name: "Read model path/name"
2222
run: |
2323
mp=$(cat build/model.txt)
2424
mp=$(echo "$mp" | tr -d '\r' | xargs)
@@ -52,9 +52,10 @@ jobs:
5252
cmake . -B build -DFMU4CPP_BUILD_TESTS=ON -DFMU4CPP_BUILD_EXAMPLES=ON -A x64
5353
cmake --build build --config Release
5454
55-
- name: "Read model name"
55+
- name: "Read model path/name"
5656
run: |
57-
echo "MODEL_PATH=$(cat build/model.txt)" | Out-File -FilePath $env:GITHUB_ENV -Append
57+
$mp = (Get-Content -Raw build/model.txt).Trim()
58+
"MODEL_PATH=$mp" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
5859
$mb = Split-Path $mp -Leaf
5960
"MODEL_BASENAME=$mb" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
6061

0 commit comments

Comments
 (0)