-
Notifications
You must be signed in to change notification settings - Fork 80
42 lines (37 loc) · 1.07 KB
/
registry.yaml
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
name: Validate registry.yaml
on:
pull_request:
branches: [ main ]
paths:
- 'registry.yaml'
push:
branches: [ main ]
paths:
- 'registry.yaml'
workflow_dispatch:
# Checks if any concurrent jobs under the same pull request or branch are being executed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validate-registry:
name: validate-registry
runs-on: ubuntu-22.04
steps:
- name: Checkout ⤵️
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: '1.21'
check-latest: true
- name: Build registry artifact tool
working-directory: build/registry
run: make
- name: Validate registry.yaml
working-directory: build/registry
run: |
./bin/registry validate-registry \
../../registry.yaml \