aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-08 12:09:36 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-08 12:09:36 +0100
commit0deb33ba5ef847ffc25232e715337d8c559633b9 (patch)
tree66625f14b7d9bb665c57960cfde12358d9eb05ee
parentf454806cbfcbaa45492a0b3991aea5a85a36c663 (diff)
Make deployment script auto-regenerate everything on deployment
-rw-r--r--.github/workflows/deploy.yml1
-rw-r--r--src/gtfs_perstop_report/src/download.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index d01c349..c8beb83 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -185,3 +185,4 @@ jobs:
if: needs.detect-changes.outputs.stops-script == 'true'
run: |
scp -r dist/gtfs_perstop_report/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:/opt/gtfs_vigo_stops/
+ ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "/opt/gtfs_vigo_stops/force-update.sh"
diff --git a/src/gtfs_perstop_report/src/download.py b/src/gtfs_perstop_report/src/download.py
index 4d0c620..c924b6b 100644
--- a/src/gtfs_perstop_report/src/download.py
+++ b/src/gtfs_perstop_report/src/download.py
@@ -113,7 +113,7 @@ def download_feed_from_url(
return None
# Create a directory in the system temporary directory
- temp_dir = tempfile.mkdtemp(prefix="gtfs_vigo_")
+ temp_dir = tempfile.mkdtemp(prefix="gtfs_feed_")
# Create a temporary zip file in the temporary directory
zip_filename = os.path.join(temp_dir, "gtfs_vigo.zip")