Skip to content

Commit f511ee9

Browse files
authored
Fix windows powershell variables (#87)
1 parent fe4c3c0 commit f511ee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
GOARCH: amd64
6767
run: |
6868
cd sourcecode-parser
69-
for /f "tokens=*" %%i in ('git describe --tags') do set gitCommit=%%i
70-
set /p projectVersion=<VERSION
69+
$gitCommit = (git describe --tags).Trim()
70+
$projectVersion = Get-Content VERSION
7171
go build -ldflags="-s -w -X main.Version=${projectVersion} -X main.GitCommit=${gitCommit}" -v -o pathfinder-windows-amd64.exe .
7272
7373
- name: Calculate SHA256

0 commit comments

Comments
 (0)