File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,16 @@ jobs:
102
102
run : Copy-Item “argon2_library\vs2015\build\Argon2OptDll.dll” -Destination “lib\src\blobs\libargon2-win.dll”
103
103
- name : Check if there are changes
104
104
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
113
115
- name : Push if Changed
114
116
if : ${{ env.CHANGED == '1' }}
115
117
run : |
@@ -118,3 +120,4 @@ jobs:
118
120
git add -f lib\src\blobs\libargon2-win.dll
119
121
git commit -m "Create Native Library for Windows"
120
122
git push origin main
123
+ shell : bash
You can’t perform that action at this time.
0 commit comments