Daily auto sign-in #148
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: Daily auto sign-in | |
on: | |
schedule: | |
- cron: '30 22 * * *' # Runs every day at 06:30 UTC+8 | |
workflow_dispatch: # Allows manual trigger | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # Use the Node.js version your project requires | |
- name: Install dependencies | |
run: npm ci | |
- name: Run script | |
run: node index.mjs | |
env: | |
CREDENTIALS: ${{ secrets.CREDENTIALS }} | |