mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-05 13:12:35 +02:00
Add validation job
This commit is contained in:
parent
be195a0de7
commit
6988ff0549
3 changed files with 58 additions and 1 deletions
11
.github/workflows/update-data.yml
vendored
11
.github/workflows/update-data.yml
vendored
|
@ -6,9 +6,18 @@ on:
|
|||
branches: ['main']
|
||||
|
||||
jobs:
|
||||
validate-questions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate questions
|
||||
run: python scripts/validate_questions.py
|
||||
shell: sh
|
||||
|
||||
update-data:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Call webhook
|
||||
run: curl -X POST ${{secrets.DEPLOY_WEBHOOK}}
|
15
.github/workflows/validate-questions.yml
vendored
Normal file
15
.github/workflows/validate-questions.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: Validate questions
|
||||
|
||||
# Configures this workflow to run every time a change is pushed to the branch called `release`.
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
validate-questions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate questions
|
||||
run: python scripts/validate_questions.py
|
||||
shell: sh
|
Loading…
Add table
Add a link
Reference in a new issue