-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.02 KB
/
update.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
name: Update OISST catalogs
on:
push:
workflow_dispatch:
schedule:
- cron: "0 14 * * *"
jobs:
update:
name: Update OISST catalogs
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Provision with µMamba
uses: mamba-org/provision-with-micromamba@v10
- name: Install dev version of fsspec-reference-maker
shell: bash -l {0}
run: pip install git+https://github.com/lsterzinger/fsspec-reference-maker.git@5072d614cbb6cfa0f497dece422a953c7c4812ab
- name: List packages
shell: bash -l {0}
run: |
which python
python -m pip list
- name: Update OISST data
shell: bash -l {0}
run: python daily.py
- name: Commit and push if changed
run: |
git config user.name "Auto OISST"
git config user.email "[email protected]"
git add cache complete preliminary
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push