From af227206f634647185c5f6d44e403d597ff5935b Mon Sep 17 00:00:00 2001 From: Ida Dittrich Date: Thu, 5 Mar 2026 10:40:36 +0100 Subject: [PATCH] fix: updated yaml files for better github storage --- .github/workflows/deploy-gcp.yml | 5 +++++ .github/workflows/int_gateway-int.yml | 6 ++++++ .github/workflows/main_gateway-prod.yml | 6 ++++++ .github/workflows/update-requirements-lock.yml | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/.github/workflows/deploy-gcp.yml b/.github/workflows/deploy-gcp.yml index 02bfba07..d6a96276 100644 --- a/.github/workflows/deploy-gcp.yml +++ b/.github/workflows/deploy-gcp.yml @@ -38,6 +38,11 @@ on: - prod - int +# Cancel in-progress runs when a new run is triggered (saves logs/storage) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} REGION: europe-west6 # Zurich region diff --git a/.github/workflows/int_gateway-int.yml b/.github/workflows/int_gateway-int.yml index fec934d4..9e3a20da 100644 --- a/.github/workflows/int_gateway-int.yml +++ b/.github/workflows/int_gateway-int.yml @@ -10,6 +10,11 @@ on: - int workflow_dispatch: +# Cancel in-progress runs when a new run is triggered (saves logs/storage) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -50,6 +55,7 @@ jobs: path: | release.zip !venv/ + retention-days: 5 deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/main_gateway-prod.yml b/.github/workflows/main_gateway-prod.yml index 00e64664..0d2edd70 100644 --- a/.github/workflows/main_gateway-prod.yml +++ b/.github/workflows/main_gateway-prod.yml @@ -10,6 +10,11 @@ on: - main workflow_dispatch: +# Cancel in-progress runs when a new run is triggered (saves logs/storage) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -50,6 +55,7 @@ jobs: path: | release.zip !venv/ + retention-days: 5 deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/update-requirements-lock.yml b/.github/workflows/update-requirements-lock.yml index bc1ec66c..1236cd3c 100644 --- a/.github/workflows/update-requirements-lock.yml +++ b/.github/workflows/update-requirements-lock.yml @@ -13,6 +13,11 @@ on: paths: - 'requirements.txt' +# Cancel in-progress runs when a new run is triggered (saves logs/storage) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: update-lock: runs-on: ubuntu-latest