Skip to content

Commit

Permalink
fix(devops): fixed script for powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Aug 7, 2021
1 parent 9ab2809 commit c4bce6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-zbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
} ElseIf ( "${{github.base_ref}}" -eq "dev" -OR "${{github.ref}}" -eq "refs/heads/dev" ){
echo "TAG=v0.0.0-dev" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
} ELSE {
echo "TAG=$(echo ${GITHUB_REF#refs/tags/})" | %{$_ -replace('refs/tags/', '')} | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
echo "TAG=$(echo ${{github.ref}})" | %{$_ -replace('refs/tags/', '')} | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
}

Expand Down

0 comments on commit c4bce6f

Please sign in to comment.