mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-12 21:03:13 +08:00
25 lines
547 B
YAML
25 lines
547 B
YAML
name: 'Automatic sweepstakes'
|
|
on:
|
|
push:
|
|
branches:
|
|
- test
|
|
#schedule:
|
|
#At minute 0 past every hour from 0 through 23.
|
|
#- 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 }}
|
|
run:
|
|
node main.js COOKIE=$COOKIE
|