Skip to content

Commit

Permalink
Merge pull request #135 from 16bravo/bugfix/stop_workflow_when_error
Browse files Browse the repository at this point in the history
stop workflow when error
  • Loading branch information
16bravo authored Jan 29, 2024
2 parents 7c58ac4 + d73a663 commit 6704269
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 6704269

Please sign in to comment.