Seasonal scheduled post #6
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: Seasonal scheduled post | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 1 20 Mar,Jun,Sep,Dec *" | |
jobs: | |
scheduled-post: | |
runs-on: ubuntu-latest | |
name: Write scheduled post | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set post title and dates | |
run: node ./.github/workflows/set-seasonal-dates.js | |
- name: Write scheduled post | |
uses: ./ | |
with: | |
github-username: katydecorah | |
github-repository: archive | |
source-bookmarks: recipes|_data/recipes.json | |
book-tags: "recommend,skip" | |
start-date: ${{ env.START_DATE }} | |
end-date: ${{ env.END_DATE }} | |
post-title: ${{ env.POST_TITLE }} | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
- name: Commit files | |
run: | | |
git pull | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A && git commit -m "${{ env.POST_TITLE }}" | |
git push |