@@ -23,10 +23,18 @@ jobs:
23
23
mkdir -p lib/src/blobs/
24
24
cp argon2_library/libargon2.so.1 lib/src/blobs/libargon2-linux.so
25
25
- name : Check if there are changes
26
- id : changes
27
- uses :
UnicornGlobal/[email protected]
26
+ run : |
27
+ function check() {
28
+ if [[ -z "$(git status --porcelain)" ]];
29
+ then
30
+ echo "0"
31
+ else
32
+ echo "1"
33
+ fi
34
+ }
35
+ echo "CHANGED=$(check)" >> $GITHUB_ENV
28
36
- name : Push if Changed
29
- if : steps.changes.outputs.changed == 1
37
+ if : ${{ env.CHANGED == '1' }}
30
38
run : |
31
39
git config user.name "Github Actions"
32
40
git config user.email "[email protected] "
@@ -53,10 +61,18 @@ jobs:
53
61
cd ..
54
62
cp argon2_library/libargon2.1.dylib lib/src/blobs/libargon2-darwin.dylib
55
63
- name : Check if there are changes
56
- id : changes
57
- uses :
UnicornGlobal/[email protected]
64
+ run : |
65
+ function check() {
66
+ if [[ -z "$(git status --porcelain)" ]];
67
+ then
68
+ echo "0"
69
+ else
70
+ echo "1"
71
+ fi
72
+ }
73
+ echo "CHANGED=$(check)" >> $GITHUB_ENV
58
74
- name : Push if Changed
59
- if : steps.changes.outputs.changed == 1
75
+ if : ${{ env.CHANGED == '1' }}
60
76
run : |
61
77
git config user.name "Github Actions"
62
78
git config user.email "[email protected] "
@@ -85,13 +101,23 @@ jobs:
85
101
- name : Copy Library
86
102
run : Copy-Item “argon2_library\vs2015\build\Argon2OptDll.dll” -Destination “lib\src\blobs\libargon2-win.dll”
87
103
- name : Check if there are changes
88
- id : changes
89
- uses :
UnicornGlobal/[email protected]
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
114
+ shell : bash
90
115
- name : Push if Changed
91
- if : steps.changes.outputs.changed == 1
116
+ if : ${{ env.CHANGED == '1' }}
92
117
run : |
93
118
git config user.name "Github Actions"
94
119
git config user.email "[email protected] "
95
- git add -f lib\ src\ blobs\ libargon2-win.dll
120
+ git add -f lib/ src/ blobs/ libargon2-win.dll
96
121
git commit -m "Create Native Library for Windows"
97
122
git push origin main
123
+ shell : bash
0 commit comments