Skip to content

Generate and publish weekly links post #28

Generate and publish weekly links post

Generate and publish weekly links post #28

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
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm 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