Skip to content

Generate and publish weekly links post #19

Generate and publish weekly links post

Generate and publish weekly links post #19

name: "Generate and publish weekly links post"
on:
workflow_dispatch:
schedule:
- cron: 30 11 * * 6
jobs:
generate-post:
name: "Run script to generate post"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run generate-weekly-links
env:
RAINDROP_ACCESS_TOKEN: ${{ secrets.RAINDROP_ACCESS_TOKEN }}
RAINDROP_COLLECTION_ID: ${{ secrets.RAINDROP_COLLECTION_ID }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Generate weekly links post