Skip to content

报名

报名 #46

Workflow file for this run

name: 报名
on:
push:
branches:
- main
schedule:
- cron: '1 1 1 1 *'
workflow_dispatch:
watch:
types: started
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2 # 使用 GitHub 官方的缓存 Action。
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} # 使用 package-lock.json 的 Hash 作为缓存的 key。也可以使用 package.json 代替
- name: npm install
run: |
npm install
- name: '运行'
run: |
node RT.js
env:
RToolurl: ${{ secrets.RToolurl }}
RToolhd: ${{ secrets.RToolhd }}
Rtoken: ${{ secrets.Rtoken }}
Rname: ${{ secrets.Rname }}
RID: ${{ secrets.RID }}
Rphone: ${{ secrets.Rphone }}
Racadamy: ${{ secrets.Racadamy }}
Rclass: ${{ secrets.Rclass }}
Rwechat: ${{ secrets.Rwechat }}
EnableOddEven: ${{ secrets.EnableOddEven }}
oddnum: ${{ secrets.oddnum }}