From 0b787d1d354fe7f2fccdc6f714269759d01519b7 Mon Sep 17 00:00:00 2001 From: Marc Hanheide Date: Wed, 22 Nov 2023 09:08:07 +0000 Subject: [PATCH] disable steps that don't work on a fork on PRs (#10) --- .github/workflows/docker-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8300499b..8c6fd156 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -45,6 +45,8 @@ jobs: - name: What run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Docker Login LCAS + # don't attempt to login for PRs + if: ${{ github.event_name != 'pull_request' }} # You may pin to the exact commit or the version. # uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@v2 @@ -56,6 +58,8 @@ jobs: # Password or personal access token used to log against the Docker registry password: ${{ secrets.LCAS_REGISTRY_TOKEN }} - name: Docker Login dockerhub + # don't attempt to login for PRs + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: # Username used to log against the Docker registry