diff --git a/.github/workflows/cmor-tables.yaml b/.github/workflows/cmor-tables.yaml new file mode 100644 index 0000000..135306a --- /dev/null +++ b/.github/workflows/cmor-tables.yaml @@ -0,0 +1,38 @@ +name: cmor tables + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + + schedule: + - cron: "0 0 * * *" + + push: + branches: + - "*" + + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + update-cmor-tables: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: checkout + uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install data_request_tools + run: | + python -m pip install --upgrade pip + pip install git+https://github.com/WCRP-CORDEX/data-request-tools@v0.1.0 + + - name: Create tables + run: | + create-cmor-tables data-request-fpsurbrcc.csv --coords --output cmor-tables