From 44d652c3b8d27709227704ab1d719d82218edcc4 Mon Sep 17 00:00:00 2001 From: Stephen Brown II Date: Fri, 8 Jan 2021 19:54:41 -0700 Subject: [PATCH] Don't run docker push on forks (#6718) Skip the docker push steps if the repo owner is not 'nightscout'. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c8e1db7bb6..d867f073f9d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,7 @@ jobs: name: Publish dev branch to Docker Hub needs: test runs-on: ubuntu-latest - if: github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout' env: DOCKER_IMAGE: nightscout/cgm-remote-monitor steps: @@ -68,7 +68,7 @@ jobs: name: Publish master branch to Docker Hub needs: test runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && github.repository_owner == 'nightscout' env: DOCKER_IMAGE: nightscout/cgm-remote-monitor steps: