-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (43 loc) · 1.28 KB
/
convert_cdl_nc_cdl.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
46
47
48
49
50
51
name: Check NC <->C DL
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba Python
uses: mamba-org/setup-micromamba@v1
with:
environment-name: GHA
init-shell: bash
create-args: >-
python=3 netcdf4 --channel conda-forge
- name: Convert NC files to CDL and back
shell: bash -l {0}
run: |
python convert_nc_cdl.py
- name: Get current date
run: echo "NOW=$(date -u)" >> ${GITHUB_ENV}
- name: Create Pull Request
if: github.ref == 'refs/heads/main'
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Latest data: ${{ env.NOW }}"
branch: update-gold-standard-files
delete-branch: true
title: "[file-conversion-ci] update gold standard file"
body: |
Update gold-standard files.
labels: |
Bot
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"