so-un-bot/.github/workflows/update-data.yml

28 lines
643 B
YAML
Raw Normal View History

2024-05-15 15:29:36 +02:00
name: Update bot data
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['main']
jobs:
2024-06-14 14:33:43 +02:00
validate-questions:
2024-05-15 15:29:36 +02:00
runs-on: ubuntu-latest
2024-06-14 14:33:43 +02:00
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate questions
run: python scripts/validate_questions.py
shell: sh
2024-05-15 15:29:36 +02:00
2024-06-14 14:33:43 +02:00
update-data:
runs-on: ubuntu-latest
2024-05-15 15:29:36 +02:00
steps:
2025-01-17 20:27:41 +01:00
2025-01-17 20:33:14 +01:00
- name: Configure custom DNS resolver
run: echo "nameserver 1.1.1.1" | sudo tee /etc/resolv.conf
2025-01-17 20:27:41 +01:00
2024-05-15 15:29:36 +02:00
- name: Call webhook
2025-01-17 20:27:41 +01:00
run: curl -X POST ${{secrets.DEPLOY_WEBHOOK}}