-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 883 Bytes
/
check-codegen.yml
File metadata and controls
32 lines (27 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Check submodules
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-submodules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
persist-credentials: true
- name: Check all submodules up-to-date
run: |
git submodule update --recursive --remote
git diff --exit-code
check-swagger:
runs-on: ubuntu-latest
needs: [check-submodules]
steps:
- uses: actions/checkout@v6
- name: Check existing swagger specification is up-to-date
run: curl https://api.aspose.cloud/v4.0/barcode/swagger/spec | diff --strip-trailing-cr -y --suppress-common-lines spec/aspose-barcode-cloud.json -