-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.16 KB
/
main.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Validate yangs and generate sids
on:
pull_request:
branches:
- main
jobs:
sid-testing:
name: sid-testing
runs-on: ubuntu-20.04
container:
image: ghcr.io/acklio/registry-utils:v0
env:
TARGET_BRANCH_NAME: "main"
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check the sid syntax
run: make -f /opt/acklio/Makefile syntaxcheck
- name: Check the sid budget
run: make -f /opt/acklio/Makefile changed_org_usage
sid-generation:
name: sid-generation
runs-on: ubuntu-20.04
needs: sid-testing
container:
image: ghcr.io/acklio/registry-utils:v0
env:
TARGET_BRANCH_NAME: "main"
steps:
- name: Setup git
run: |
git config --global user.email "< >"
git config --global user.name "acklio-registry"
mkdir ~/.ssh
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate Sids
run: make -f /opt/acklio/Makefile sids_and_push