From 878d434cae6680cd207e19f1edb55511a43a1baa Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 13 Mar 2023 13:39:46 -0700 Subject: [PATCH] Only run container job on project repo --- .github/workflows/container.yml | 3 +-- .github/workflows/web.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index cdf6660462..607a45a0e5 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -17,6 +17,7 @@ jobs: linux: name: 'Linux' + if: github.repository == 'libgeos/geos' runs-on: ubuntu-latest steps: @@ -28,7 +29,6 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Login to GitHub Container Registry - if: ${{ github.repository == 'libgeos/geos' }} uses: docker/login-action@v1 with: registry: ghcr.io @@ -40,7 +40,6 @@ jobs: cp tools/ci/geosop/Dockerfile . - name: Build and Push - if: ${{ github.repository == 'libgeos/geos' }} uses: docker/build-push-action@v2 with: context: . diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 04736c0598..a20adb5d4c 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -17,6 +17,7 @@ jobs: # Only run docbuild on central repo if: github.repository == 'libgeos/geos' + steps: - name: 'Install'