-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.22 KB
/
validate-catalog.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
43
44
45
46
47
48
49
name: catalog
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: validate feedstock entry and generate catalog
uses: leap-stc/data-catalog-actions/leap-catalog@main
with:
generation-single: "./feedstock/catalog.yaml"
output-directory: "./"
- name: Commit changes
run: |
cat output/consolidated-web-catalog.json | jq
# - name: Dispatch event
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.GH_USER_TOKEN }}
# script: |
# await github.repos.createDispatchEvent({
# owner: 'leap-stc',
# repo: 'data-management',
# event_type: 'update-catalog',
# client_payload: {
# origin_repo: `${context.repo.owner}/${context.repo.repo}`
# }
# })