From 87b87009b5d5544b5497e7de922117d5cfc98021 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Wed, 14 Oct 2020 17:52:54 +0200 Subject: [PATCH] Disable some gh actions on forks --- .github/workflows/build.yml | 6 +++--- .github/workflows/codeql-analysis.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd1ca610..27c7f8f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,19 +68,19 @@ jobs: docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }} - name: Docker Login - if: success() && github.event_name != 'pull_request' + if: success() && github.event_name != 'pull_request' && github.repository == 'viktorstrate/photoview' env: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: | echo "${DOCKER_PASSWORD}" | docker login --username "${{ steps.prepare.outputs.docker_username }}" --password-stdin - name: Docker Buildx (push) - if: success() && github.event_name != 'pull_request' + if: success() && github.event_name != 'pull_request' && github.repository == 'viktorstrate/photoview' run: | docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} # - name: Docker Check Manifest - # if: always() && github.event_name != 'pull_request' + # if: always() && github.event_name != 'pull_request' && github.repository == 'viktorstrate/photoview' # run: | # docker run --rm mplatform/mquery ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 50e5bb37..b871614c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -12,6 +12,7 @@ on: jobs: analyze: name: Analyze + if: github.repository == 'viktorstrate/photoview' runs-on: ubuntu-latest strategy: