Skip to content

publish

publish #89267

Workflow file for this run

name: publish
on:
push:
branches:
- main
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
jobs:
publish:
runs-on: macos-latest
env:
TZ: America/Los_Angeles
steps:
- uses: actions/checkout@v3
with:
ref: public
fetch-depth: 0
- uses: ruby/setup-ruby@v1
- run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/main
ruby index.rb
if ! git ls-files --error-unmatch index.html &> /dev/null || ! git diff -s --exit-code index.html; then
say -f today.txt -o today.aac
git add index.html today.aac
git commit -m "$(date)"
git push
fi