Skip to content

Obtain latest SC data #9

Obtain latest SC data

Obtain latest SC data #9

Workflow file for this run

name: Obtain latest SC data
on:
workflow_dispatch:
schedule:
- cron: '4 21 * * 1' # 9.04PM GMT+8 every Monday
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Babashka
uses: turtlequeue/setup-babashka@v1.5.0
with:
babashka-version: 1.3.182
- name: Fetch latest data
run: bb ./input/sc/run.bb
- name: Commit and push if it changed
run: |-
git config user.name "Automated update"
git config user.email "actions@users.noreply.github.com"
git add -A
timestamp=$(TZ='Asia/Singapore' date)
git commit -m "Latest data: ${timestamp}" || exit 0
git push