Skip to content

Weekly Screenshots from Jersey Met Office #2

Weekly Screenshots from Jersey Met Office

Weekly Screenshots from Jersey Met Office #2

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'