Skip to content

Update Gist

Update Gist #247

Workflow file for this run

# why it dosen't works?
name: Update Gist
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20" # Use Node.js version 20
- name: Install dependencies
run: npm install
- name: Run script
run: npm start
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_GISTID: ${{ secrets.GH_GISTID}}
USER_NAME: ${{ github.actor }}
TIMEZONE: Asia/Seoul #replace your timezone