From 94a46978c0f4c995ab76b6a63e2617ffe1e2b5b2 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 4 Mar 2025 09:59:24 -0800 Subject: [PATCH] ci: conditional container build --- .github/workflows/dev_container.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/dev_container.yml b/.github/workflows/dev_container.yml index c8cbc3c6c5..2e7a1f9e3b 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -15,9 +15,30 @@ on: - '*' jobs: + test: + name: Check for Changes + runs-on: [runs-on,"runner=1cpu-linux-x64","image=ubuntu24-full-x64","run-id=${{ github.run_id }}"] + outputs: + changes: ${{ steps.changes.outputs.src }} + steps: + - uses: actions/checkout@v4 + with: + fetch-tags: true + submodules: false + fetch-depth: 0 + + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + src: + - 'Tools/setup/ubuntu.sh' + - 'Tools/setup/requirements.txt' build: name: Build and Push Container runs-on: [runs-on,"runner=8cpu-linux-x64","image=ubuntu24-full-x64","run-id=${{ github.run_id }}",spot=false,extras=s3-cache] + needs: test + if: needs.test.outputs.changes == 'true' steps: - uses: runs-on/action@v1 - uses: actions/checkout@v4