Update Gist #241
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
# 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 |