From 77647da38f537d808a30f7b03d4a5685f778b1ed Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Thu, 21 Nov 2024 18:14:30 +0100 Subject: [PATCH] fix: add timeout-minutes and FLOX_DISABLE_METRICS (#110) --- .github/workflows/ci.yml | 9 +++++---- .github/workflows/update.yml | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ba2320..bb50d32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,12 +9,15 @@ on: schedule: - cron: "0 0 * * *" +env: + FLOX_DISABLE_METRICS: "true" jobs: envs: name: "Find environments" runs-on: "ubuntu-latest" + timeout-minutes: 30 outputs: envs_per_system: "${{ steps.envs.outputs.envs_per_system }}" @@ -86,7 +89,6 @@ jobs: test: name: "Test '${{ matrix.example }}' example on '${{ matrix.system }}'" runs-on: "ubuntu-latest" - timeout-minutes: 30 needs: @@ -138,6 +140,7 @@ jobs: containarize: name: "Containarize '${{ matrix.example }}'" runs-on: "ubuntu-latest" + timeout-minutes: 30 if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' @@ -148,7 +151,6 @@ jobs: env: FLOX_BIN: "flox -vvv" - timeout-minutes: 30 permissions: contents: "read" @@ -189,6 +191,7 @@ jobs: push: name: "Sync '${{ matrix.example }}' manifest" runs-on: "ubuntu-latest" + timeout-minutes: 30 if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' @@ -201,8 +204,6 @@ jobs: FLOX_REMOTE_OWNER: "flox" FLOX_AUTH0_URL: "https://auth.flox.dev" - timeout-minutes: 30 - strategy: matrix: include: ${{ fromJSON(needs.envs.outputs.envs_only ) }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index c073e70..cc232a0 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -5,11 +5,15 @@ on: schedule: - cron: "30 0 * * 1" +env: + FLOX_DISABLE_METRICS: "true" + jobs: envs: name: "Find environments" runs-on: "ubuntu-latest" + timeout-minutes: 30 outputs: envs: "${{ steps.envs.outputs.envs }}" @@ -48,6 +52,7 @@ jobs: upgrade: name: "Upgrade '${{ matrix.example }}' manifest" runs-on: "ubuntu-latest" + timeout-minutes: 30 needs: - "envs"