Skip to content

Commit b962589

Browse files
Merge pull request #133 from regulaforensics/55662-develop
Update GitHub Actions to use latest checkout and setup actions
2 parents e33c0c6 + 44c18e5 commit b962589

6 files changed

Lines changed: 98 additions & 60 deletions

File tree

.github/workflows/back-merge-handler.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: github.ref_name == 'master'
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0
1717

@@ -41,15 +41,19 @@ jobs:
4141
4242
- name: Create Pull Request
4343
if: env.SKIP != 'true'
44-
run: gh pr create -B stable -H master --title '[GitHub Actions] Merge master -> stable' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
44+
run: |
45+
gh pr create -B stable -H master \
46+
--title '[GitHub Actions] Merge master -> stable' \
47+
--label back-merge \
48+
--body 'Autogenerated Pull Request for `back-merge` triggered by GitHub Actions'
4549
env:
4650
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4751

4852
pr_stable_to_develop:
4953
runs-on: ubuntu-latest
5054
if: github.ref_name == 'stable'
5155
steps:
52-
- uses: actions/checkout@v4
56+
- uses: actions/checkout@v6
5357
with:
5458
fetch-depth: 0
5559

@@ -79,6 +83,10 @@ jobs:
7983
8084
- name: Create Pull Request
8185
if: env.SKIP != 'true'
82-
run: gh pr create -B develop -H stable --title '[GitHub Actions] Merge stable -> develop' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
86+
run: |
87+
gh pr create -B develop -H stable \
88+
--title '[GitHub Actions] Merge stable -> develop' \
89+
--label back-merge \
90+
--body 'Autogenerated Pull Request for `back-merge` triggered by GitHub Actions'
8391
env:
8492
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/make-prs-for-client-repos.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,63 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Create PR for Python WebClient Repo
30-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-python-client
30+
run: |
31+
gh pr create --base ${{ inputs.target_branch }} \
32+
--head ${{ inputs.source_branch }} \
33+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
34+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
35+
--repo regulaforensics/FaceSDK-web-python-client
3136
env:
3237
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
3338

3439
java-webclient-pr:
3540
runs-on: ubuntu-latest
3641
steps:
3742
- name: Create PR for Java WebClient Repo
38-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-java-client
43+
run: |
44+
gh pr create --base ${{ inputs.target_branch }} \
45+
--head ${{ inputs.source_branch }} \
46+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
47+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
48+
--repo regulaforensics/FaceSDK-web-java-client
3949
env:
4050
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
4151

4252
js-webclient-pr:
4353
runs-on: ubuntu-latest
4454
steps:
4555
- name: Create PR for JS WebClient Repo
46-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-js-client
56+
run: |
57+
gh pr create --base ${{ inputs.target_branch }} \
58+
--head ${{ inputs.source_branch }} \
59+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
60+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
61+
--repo regulaforensics/FaceSDK-web-js-client
4762
env:
4863
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
4964

5065
csharp-webclient-pr:
5166
runs-on: ubuntu-latest
5267
steps:
5368
- name: Create PR for CSharp WebClient Repo
54-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-csharp-client
69+
run: |
70+
gh pr create --base ${{ inputs.target_branch }} \
71+
--head ${{ inputs.source_branch }} \
72+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
73+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
74+
--repo regulaforensics/FaceSDK-web-csharp-client
5575
env:
5676
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
5777

5878
openapi-pr:
5979
runs-on: ubuntu-latest
6080
steps:
6181
- name: Create PR for OpenAPI Repo
62-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-openapi
82+
run: |
83+
gh pr create --base ${{ inputs.target_branch }} \
84+
--head ${{ inputs.source_branch }} \
85+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
86+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
87+
--repo regulaforensics/FaceSDK-web-openapi
6388
env:
6489
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

.github/workflows/release-web-page.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,37 @@ on:
77

88
jobs:
99
build-and-push:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Specifications
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414
with:
1515
path: 'master-branch'
16+
1617
- name: Install redoc-cli
17-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1819
with:
1920
node-version: 20
2021
registry-url: https://registry.npmjs.org/
22+
2123
- name: Build html page
2224
working-directory: master-branch
2325
run: |
2426
npm install -g @redocly/cli;
2527
npx @redocly/cli build-docs index.yml -o=doc.html;
28+
2629
- name: Checkout pages branch
27-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
2831
with:
2932
path: 'pages-branch'
3033
ref: 'gh-pages'
34+
3135
- name: Rewrite html page
3236
working-directory: pages-branch
3337
run: |
3438
rm index.html
3539
mv ../master-branch/doc.html index.html
40+
3641
- name: Push changes
3742
working-directory: pages-branch
3843
run: |

.github/workflows/update-clients.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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,7 +64,7 @@ jobs:
6464
fi
6565
6666
git add --all
67-
67+
6868
if ! git diff-index --quiet --cached HEAD; then
6969
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
7070
else
@@ -87,25 +87,25 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- name: Specify Java Version
90-
uses: actions/setup-java@v4
90+
uses: actions/setup-java@v5
9191
with:
92-
distribution: "zulu"
92+
distribution: 'zulu'
9393
java-version: 11
9494
java-package: jdk
9595

9696
- name: Checkout Specification Repo
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@v6
9898
with:
99-
path: "FaceSDK-web-openapi"
99+
path: 'FaceSDK-web-openapi'
100100
ref: ${{ github.event.inputs.branch }}
101101

102102
- name: Checkout Java Client Repo
103-
uses: actions/checkout@v4
103+
uses: actions/checkout@v6
104104
with:
105-
repository: "regulaforensics/FaceSDK-web-java-client"
105+
repository: 'regulaforensics/FaceSDK-web-java-client'
106106
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
107-
path: "java-client"
108-
ref: "develop"
107+
path: 'java-client'
108+
ref: 'develop'
109109

110110
- name: Update Model According To Specification
111111
working-directory: java-client
@@ -125,7 +125,7 @@ jobs:
125125
fi
126126
127127
git add --all
128-
128+
129129
if ! git diff-index --quiet --cached HEAD; then
130130
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
131131
else
@@ -147,18 +147,18 @@ jobs:
147147
runs-on: ubuntu-latest
148148
steps:
149149
- name: Checkout Specification Repo
150-
uses: actions/checkout@v4
150+
uses: actions/checkout@v6
151151
with:
152-
path: "FaceSDK-web-openapi"
152+
path: 'FaceSDK-web-openapi'
153153
ref: ${{ github.event.inputs.branch }}
154154

155155
- name: Checkout Python Client Repo
156-
uses: actions/checkout@v4
156+
uses: actions/checkout@v6
157157
with:
158-
repository: "regulaforensics/FaceSDK-web-python-client"
158+
repository: 'regulaforensics/FaceSDK-web-python-client'
159159
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
160-
path: "python-client"
161-
ref: "develop"
160+
path: 'python-client'
161+
ref: 'develop'
162162

163163
- name: Update Model According To Specification
164164
working-directory: python-client
@@ -178,7 +178,7 @@ jobs:
178178
fi
179179
180180
git add --all
181-
181+
182182
if ! git diff-index --quiet --cached HEAD; then
183183
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
184184
else
@@ -200,23 +200,23 @@ jobs:
200200
runs-on: ubuntu-latest
201201
steps:
202202
- name: Specify Dotnet Version
203-
uses: actions/setup-dotnet@v1
203+
uses: actions/setup-dotnet@v5
204204
with:
205-
dotnet-version: "3.1.x"
205+
dotnet-version: '3.1.x'
206206

207207
- name: Checkout Specification Repo
208-
uses: actions/checkout@v4
208+
uses: actions/checkout@v6
209209
with:
210-
path: "FaceSDK-web-openapi"
210+
path: 'FaceSDK-web-openapi'
211211
ref: ${{ github.event.inputs.branch }}
212212

213213
- name: Checkout C# Client Repo
214-
uses: actions/checkout@v4
214+
uses: actions/checkout@v6
215215
with:
216-
repository: "regulaforensics/FaceSDK-web-csharp-client"
216+
repository: 'regulaforensics/FaceSDK-web-csharp-client'
217217
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
218-
path: "csharp-client"
219-
ref: "develop"
218+
path: 'csharp-client'
219+
ref: 'develop'
220220

221221
- name: Update Model According To Specification
222222
working-directory: csharp-client
@@ -236,7 +236,7 @@ jobs:
236236
fi
237237
238238
git add --all
239-
239+
240240
if ! git diff-index --quiet --cached HEAD; then
241241
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
242242
else

.github/workflows/validate-spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

1717
- name: Setup Node
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1919
with:
2020
node-version: 20
2121
registry-url: https://registry.npmjs.org/

.github/workflows/verify-clients.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout Specification Repo
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616
with:
1717
path: 'FaceSDK-web-openapi'
1818

1919
- name: Checkout Python Client Repo
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
repository: 'regulaforensics/FaceSDK-web-python-client'
2323
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
@@ -33,12 +33,12 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout Specification Repo
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737
with:
3838
path: 'FaceSDK-web-openapi'
3939

4040
- name: Checkout CSharp Client Repo
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242
with:
4343
repository: 'regulaforensics/FaceSDK-web-csharp-client'
4444
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
@@ -54,16 +54,16 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- name: Checkout Specification Repo
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v6
5858
with:
59-
path: "FaceSDK-web-openapi"
59+
path: 'FaceSDK-web-openapi'
6060

6161
- name: Checkout JS Client Repo
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@v6
6363
with:
64-
repository: "regulaforensics/FaceSDK-web-js-client"
64+
repository: 'regulaforensics/FaceSDK-web-js-client'
6565
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
66-
path: "js-client"
66+
path: 'js-client'
6767

6868
- name: Verify update JS client
6969
working-directory: js-client
@@ -75,19 +75,19 @@ jobs:
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: Specify Java Version
78-
uses: actions/setup-java@v4
78+
uses: actions/setup-java@v5
7979
with:
80-
distribution: "zulu"
80+
distribution: 'zulu'
8181
java-version: 11
8282
java-package: jdk
8383

8484
- name: Checkout Specification Repo
85-
uses: actions/checkout@v4
85+
uses: actions/checkout@v6
8686
with:
8787
path: 'FaceSDK-web-openapi'
8888

8989
- name: Checkout Java Client Repo
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v6
9191
with:
9292
repository: 'regulaforensics/FaceSDK-web-java-client'
9393
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

0 commit comments

Comments
 (0)