-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (32 loc) · 1.82 KB
/
weekly-weather-data-collection.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
name: Weekly Screenshots from Jersey Met Office
on:
schedule:
- cron: '30 6 * * 1'
# on:
# push:
# branches: [ "main" ]
jobs:
take_screenshots:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: get-current-date
id: date
run: echo "current_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: set-directory-with-date
id: destdir
run: echo "destdir=$(date +'%Y/%m-%B/met-office/%d')" >> $GITHUB_ENV
- name: verify-directory-exists
run: mkdir -p ${{ env.destdir }}
- name: Download 7-day chart for air temperature at Maison St Louis from jersey met service
run: wget -O $(date +'%Y/%m-%B/met-office/%d')/$(date +'%Y-%m-%d-jerseymet-weather-obs-7-day-air-temp-maison-st-louis-observatory.png') https://sojpublicdata.blob.core.windows.net/jerseymet/Town/MSLTemp.Temp_MSL_7day.png
- name: Download 7-day chart for relative humidity at Maison St Louis from jersey met service
run: wget -O $(date +'%Y/%m-%B/met-office/%d')/$(date +'%Y-%m-%d-jerseymet-weather-obs-7-day-relative-humidity-maison-st-louis-observatory.png') https://sojpublicdata.blob.core.windows.net/jerseymet/Town/MSLTemp.RH_MSL_7day1.png
- name: Download 7-day chart for air pressure at Maison St Louis from jersey met service
run: wget -O $(date +'%Y/%m-%B/met-office/%d')/$(date +'%Y-%m-%d-jerseymet-weather-obs-7-day-air-pressure-maison-st-louis-observatory.png') https://sojpublicdata.blob.core.windows.net/jerseymet/Town/Pressure.Pressure_MSL_7day.png
- name: commit-screenshots-to-repo
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '${{ env.current_date }} - Weekly weather observations and shipping forecasts from jerseymet'