We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f8ca7 commit 34a5823Copy full SHA for 34a5823
.github/workflows/dargon2_library-builder.yml
@@ -102,15 +102,14 @@ jobs:
102
run: Copy-Item “argon2_library\vs2015\build\Argon2OptDll.dll” -Destination “lib\src\blobs\libargon2-win.dll”
103
- name: Check if there are changes
104
run: |
105
- function check() {
106
- if [[ -z "$(git status --porcelain)" ]];
107
- then
108
- echo "0"
109
- else
110
- echo "1"
111
- fi
112
- }
113
- echo "CHANGED=$(check)" >> $GITHUB_ENV
+ $status = git status --porcelain
+ $num = 0
+ if ($status -eq "") {
+ Set-Variable -Name "num" -Value "0"
+ } else {
+ Set-Variable -Name "num" -Value "1"
+ }
+ echo "CHANGED=$num" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
114
- name: Push if Changed
115
if: ${{ env.CHANGED == '1' }}
116
0 commit comments