Publish Scheduled Posts #142427
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: Publish Scheduled Posts | |
on: | |
schedule: | |
- cron: 0/15 * * * * | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@main | |
- name: use node 22 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '22.x' | |
- name: publish scheduled | |
env: | |
BUILD_HOOK_URL: ${{ secrets.BUILD_HOOK_URL }} | |
run: node scripts/publish-scheduled.js |