Skip to content

Publish Word of the day #32

Publish Word of the day

Publish Word of the day #32

Workflow file for this run

name: "Publish Word of the day"
on:
workflow_dispatch:
schedule:
- cron: "50 4 * * *" # should be at ~8:10 UTC+3 (set to 7:50, github adds ~20 mins)
jobs:
publish-word:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Publish Word of the day
run: node index.js
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}