Daily Event Publishing #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |