Skip to content

Commit

Permalink
stop workflow when error
Browse files Browse the repository at this point in the history
  • Loading branch information
16bravo committed Jan 29, 2024
1 parent c7c5002 commit d73a663
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/init_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Check if database exists
id: check-db
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/update_static_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check the previous workflow
run: |
if [ ${{ github.event.workflow_run.conclusion == 'success' }} ]; then
echo "Previous workflow OK"
else
echo "Previous workflow in error"
exit 1
fi
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
Expand Down
2 changes: 0 additions & 2 deletions scripts/db_initialisation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import sqlite3
import pandas as pd

raise ValueError("Test Erreur")

database_path = 'data/BravoRanking.db'

# Database connection
Expand Down

0 comments on commit d73a663

Please sign in to comment.