From d7e1b14138f79ff815c534363eb09037e00d2706 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 20 Oct 2023 14:31:51 +0200 Subject: [PATCH] Do not start CI jobs/steps which use secrets ehn repository owner isnt Renumics --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/pr.yml | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7297a8b..ab3056f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -336,9 +336,11 @@ jobs: fi - name: '📸 Upload GUI screenshots' if: | - success() - || steps.setup-chromedriver.outcome == 'success' - || steps.setup-geckodriver.outcome == 'success' + ( + success() + || steps.setup-chromedriver.outcome == 'success' + || steps.setup-geckodriver.outcome == 'success' + ) && github.repository_owner == 'Renumics' uses: LanceMcCarthy/Action-AzureBlobUpload@v2 with: connection_string: ${{ secrets.AZURE_CONNECTION_STRING }} @@ -424,7 +426,7 @@ jobs: # Release stage release: name: '🚀 Release Spotlight' - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'Renumics' needs: - prepare-python - prepare-node diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5f153c99..45a5776b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -6,6 +6,7 @@ jobs: # Comment comment-gui-screenshots: name: '🖍 Comment GUI screenshots' + if: github.repository_owner == 'Renumics' permissions: pull-requests: write runs-on: ubuntu-latest