update retry #81
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: Hydro Problem Check | |
on: | |
push: | |
paths: | |
- 'hydrooj-problem-transmission/**' | |
- 'scripts/checkProblems.mjs' | |
schedule: | |
- cron: '0 0 1,11,21 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install And Build | |
run: | | |
cd hydrooj-problem-transmission | |
npm i | |
tsc | |
cd .. | |
- name: Init HydroOJ Secret | |
run: node scripts/checkProblems.mjs | |
env: | |
HYDRO_USERNAME: ${{ secrets.HYDRO_USERNAME }} | |
HYDRO_PASSWORD: ${{ secrets.HYDRO_PASSWORD }} | |
- name: Check Problems | |
run: | | |
cd hydrooj-problem-transmission | |
npm run check | |
cd .. |