Generate and publish weekly links post #28
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 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 |