mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
25 lines
516 B
YAML
25 lines
516 B
YAML
name: 'Automatic sweepstakes'
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: '0 */2 * * *'
|
|
jobs:
|
|
lottery:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 'Checkout codes'
|
|
uses: actions/checkout@v2
|
|
- name: 'Use Node.js'
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.18.3'
|
|
- name: 'Run in Nodejs'
|
|
shell: bash
|
|
env:
|
|
COOKIE: ${{ secrets.COOKIE }}
|
|
SCKEY: ${{ secrets.SCKEY }}
|
|
run:
|
|
node main.js
|