-
-
Notifications
You must be signed in to change notification settings - Fork 259
52 lines (49 loc) · 1.48 KB
/
sentinel.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: hCAPTCHA Sentinel
on:
workflow_dispatch:
# “At minute 7 past every 2nd hour.”
# https://crontab.guru/
schedule:
- cron: "7 */2 * * *"
jobs:
check_new_challenge:
env:
GITHUB_TOKEN: ${{ secrets.SENTINEL_ACCESS_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout environment
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
pip install -U hcaptcha-challenger[sentinel]
playwright install chromium
playwright install-deps chromium
- name: Startup sentinel
env:
SENTINEL_PER_TIMES: 12
SITEKEY_DISCORD: f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34
SITEKEY_EPIC: 91e4137f-95af-4bc9-97af-cdcedce21c8c
SITEKEY_USER_EASY: c86d730b-300a-444c-a8c5-5312e7a93628
continue-on-error: true
timeout-minutes: 10
run: |
cd automation && python3 sentinel.py
- name: Startup collector
env:
COLLECTOR_PER_TIMES: 20
SITEKEY_EPIC: 91e4137f-95af-4bc9-97af-cdcedce21c8c
continue-on-error: true
timeout-minutes: 20
run: |
cd automation && python3 collector.py
- name: Upload artifact
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: tmp_dir
path: ./automation/tmp_dir