Skip to content

USe local data

USe local data #5

Workflow file for this run

name: Fetch the Google Calendar
on:
workflow_dispatch:
push:
# schedule:
# - cron: '01 18 * * *'
permissions:
contents: write
jobs:
fetch-calendar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Curl calendar
run: |
git config user.email "[email protected]"
git config user.name "Community Developers"
cd static/js
echo "download calendar"
bash ../../getcalendar.sh
echo "preparing to push change(s)"
git add .
if git commit -m "Add updates"
then
git push
echo "Changed!"
exit 0
else
echo "No change"
true # ensure success
fi
env: # for gh
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}