leap-stc / LEAP_template_feedstock

A Prototype feedstock that implements independent metadata and data updates using pangeo forge
Apache License 2.0
1 stars 2 forks source link

Add feedstock's `catalog.yaml` and `meta.yaml` validation via GitHub actions #41

Closed andersy005 closed 5 months ago

andersy005 commented 5 months ago

i just finished creating a GitHub Action to validate the catalog.yaml in feedstocks. the action is located in the leap-stc/data-catalog-actions repository. below is an example workflow that can be used to enable this action in the repository.

.github/workflows/validate-catalog.yaml

name: catalog

on:
  pull_request:
    branches:
  push:
    branches:

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.10'
            - name: validate feedstock entry
              uses: leap-stc/data-catalog-actions/leap-catalog@main
              with:
                single-feedstock: "./feedstock/catalog.yaml"

@norlandrhagen / @jbusecke, do you mind adding this to the following repos ( i don;t have write privileges)