Skip to content

Daily Event Publishing #139

Daily Event Publishing

Daily Event Publishing #139

name: Daily Event Publishing
on:
schedule:
- cron: '0 0 * * *'
jobs:
published-daily-events:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Set up Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'
- name: Install CLI
run: |
curl -L -O https://github.com/clojure/brew-install/releases/latest/download/posix-install.sh
chmod +x posix-install.sh
sudo ./posix-install.sh
clojure
- name: Check out the repository
uses: actions/checkout@v4
- name: Run Event Script
run: |
cd script/eventgen
clojure -X parse/parse-feed :dir '"../../content/events"'
- name: Commit and push event page
run: |
git config --global user.name clojure-build
git config --global user.email "[email protected]"
git add content/events
if git status | grep -q modified
then
git commit -m 'update events'
git push
fi