@@ -32,18 +32,18 @@ jobs:
3232 runs-on : ubuntu-latest
3333 steps :
3434 - name : Checkout Specification Repo
35- uses : actions/checkout@v4
35+ uses : actions/checkout@v6
3636 with :
37- path : " FaceSDK-web-openapi"
37+ path : ' FaceSDK-web-openapi'
3838 ref : ${{ github.event.inputs.branch }}
3939
4040 - name : Checkout JS Client Repo
41- uses : actions/checkout@v4
41+ uses : actions/checkout@v6
4242 with :
43- repository : " regulaforensics/FaceSDK-web-js-client"
43+ repository : ' regulaforensics/FaceSDK-web-js-client'
4444 token : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
45- path : " js-client"
46- ref : " develop"
45+ path : ' js-client'
46+ ref : ' develop'
4747
4848 - name : Update Model According To Specification
4949 working-directory : js-client
@@ -64,13 +64,20 @@ jobs:
6464 fi
6565
6666 git add --all
67- git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
67+
68+ if ! git diff-index --quiet --cached HEAD; then
69+ git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
70+ else
71+ echo "No staged changes to commit."
72+ exit 0
73+ fi
6874
6975 if [ $? -eq 0 ]; then
7076 git push --set-upstream origin ${GITHUB_SHA::8}
7177 gh pr create --fill --base develop
7278 else
7379 echo "Nothing to commit."
80+ exit 0
7481 fi
7582 env :
7683 GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
@@ -80,25 +87,25 @@ jobs:
8087 runs-on : ubuntu-latest
8188 steps :
8289 - name : Specify Java Version
83- uses : actions/setup-java@v4
90+ uses : actions/setup-java@v5
8491 with :
85- distribution : " zulu"
92+ distribution : ' zulu'
8693 java-version : 11
8794 java-package : jdk
8895
8996 - name : Checkout Specification Repo
90- uses : actions/checkout@v4
97+ uses : actions/checkout@v6
9198 with :
92- path : " FaceSDK-web-openapi"
99+ path : ' FaceSDK-web-openapi'
93100 ref : ${{ github.event.inputs.branch }}
94101
95102 - name : Checkout Java Client Repo
96- uses : actions/checkout@v4
103+ uses : actions/checkout@v6
97104 with :
98- repository : " regulaforensics/FaceSDK-web-java-client"
105+ repository : ' regulaforensics/FaceSDK-web-java-client'
99106 token : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
100- path : " java-client"
101- ref : " develop"
107+ path : ' java-client'
108+ ref : ' develop'
102109
103110 - name : Update Model According To Specification
104111 working-directory : java-client
@@ -118,13 +125,20 @@ jobs:
118125 fi
119126
120127 git add --all
121- git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
128+
129+ if ! git diff-index --quiet --cached HEAD; then
130+ git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
131+ else
132+ echo "No staged changes to commit."
133+ exit 0
134+ fi
122135
123136 if [ $? -eq 0 ]; then
124137 git push --set-upstream origin ${GITHUB_SHA::8}
125138 gh pr create --fill --base develop
126139 else
127140 echo "Nothing to commit."
141+ exit 0
128142 fi
129143 env :
130144 GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
@@ -133,18 +147,18 @@ jobs:
133147 runs-on : ubuntu-latest
134148 steps :
135149 - name : Checkout Specification Repo
136- uses : actions/checkout@v4
150+ uses : actions/checkout@v6
137151 with :
138- path : " FaceSDK-web-openapi"
152+ path : ' FaceSDK-web-openapi'
139153 ref : ${{ github.event.inputs.branch }}
140154
141155 - name : Checkout Python Client Repo
142- uses : actions/checkout@v4
156+ uses : actions/checkout@v6
143157 with :
144- repository : " regulaforensics/FaceSDK-web-python-client"
158+ repository : ' regulaforensics/FaceSDK-web-python-client'
145159 token : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
146- path : " python-client"
147- ref : " develop"
160+ path : ' python-client'
161+ ref : ' develop'
148162
149163 - name : Update Model According To Specification
150164 working-directory : python-client
@@ -164,13 +178,20 @@ jobs:
164178 fi
165179
166180 git add --all
167- git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
181+
182+ if ! git diff-index --quiet --cached HEAD; then
183+ git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
184+ else
185+ echo "No staged changes to commit."
186+ exit 0
187+ fi
168188
169189 if [ $? -eq 0 ]; then
170190 git push --set-upstream origin ${GITHUB_SHA::8}
171191 gh pr create --fill --base develop
172192 else
173193 echo "Nothing to commit."
194+ exit 0
174195 fi
175196 env :
176197 GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
@@ -179,23 +200,23 @@ jobs:
179200 runs-on : ubuntu-latest
180201 steps :
181202 - name : Specify Dotnet Version
182- uses : actions/setup-dotnet@v1
203+ uses : actions/setup-dotnet@v5
183204 with :
184- dotnet-version : " 3.1.x"
205+ dotnet-version : ' 3.1.x'
185206
186207 - name : Checkout Specification Repo
187- uses : actions/checkout@v4
208+ uses : actions/checkout@v6
188209 with :
189- path : " FaceSDK-web-openapi"
210+ path : ' FaceSDK-web-openapi'
190211 ref : ${{ github.event.inputs.branch }}
191212
192213 - name : Checkout C# Client Repo
193- uses : actions/checkout@v4
214+ uses : actions/checkout@v6
194215 with :
195- repository : " regulaforensics/FaceSDK-web-csharp-client"
216+ repository : ' regulaforensics/FaceSDK-web-csharp-client'
196217 token : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
197- path : " csharp-client"
198- ref : " develop"
218+ path : ' csharp-client'
219+ ref : ' develop'
199220
200221 - name : Update Model According To Specification
201222 working-directory : csharp-client
@@ -215,13 +236,20 @@ jobs:
215236 fi
216237
217238 git add --all
218- git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
239+
240+ if ! git diff-index --quiet --cached HEAD; then
241+ git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
242+ else
243+ echo "No staged changes to commit."
244+ exit 0
245+ fi
219246
220247 if [ $? -eq 0 ]; then
221248 git push --set-upstream origin ${GITHUB_SHA::8}
222249 gh pr create --fill --base develop
223250 else
224251 echo "Nothing to commit."
252+ exit 0
225253 fi
226254 env :
227255 GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
0 commit comments