Skip to content

Commit a15300f

Browse files
authored
use bash for the shell
1 parent 34a5823 commit a15300f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/dargon2_library-builder.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ jobs:
102102
run: Copy-Item “argon2_library\vs2015\build\Argon2OptDll.dll” -Destination “lib\src\blobs\libargon2-win.dll”
103103
- name: Check if there are changes
104104
run: |
105-
$status = git status --porcelain
106-
$num = 0
107-
if ($status -eq "") {
108-
Set-Variable -Name "num" -Value "0"
109-
} else {
110-
Set-Variable -Name "num" -Value "1"
111-
}
112-
echo "CHANGED=$num" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
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
114+
shell: bash
113115
- name: Push if Changed
114116
if: ${{ env.CHANGED == '1' }}
115117
run: |
@@ -118,3 +120,4 @@ jobs:
118120
git add -f lib\src\blobs\libargon2-win.dll
119121
git commit -m "Create Native Library for Windows"
120122
git push origin main
123+
shell: bash

0 commit comments

Comments
 (0)