hCAPTCHA Sentinel #2202
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: 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 |