Generating Daily Joke #495
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: generate-daily-joke | |
run-name: Generating Daily Joke | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
generate-edit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm install | |
- name: Edit README.md | |
run: | | |
npm start | |
- name: Commit README.md | |
run: | | |
git config --global user.name 'VulcanWM' | |
git config --global user.email 'VulcanWM@users.noreply.github.com' | |
git commit -am "Generated Daily Joke" | |
git push |