From 05c2ef07355c91fe2be21f0ec189240ec3feda7f Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Sun, 31 Jan 2021 12:40:04 +0200 Subject: [PATCH] issue-60: Do not start run-it-s3 job for forks (due to secrets issues this should be run manually for forks) --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e38f475..01ad47ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: PR_HEAD_LABEL: ${{ toJSON(github.event.pull_request.head.label) }} # format: boolean # check https://github.com/carlspring/s3fs-nio/pull/77#issuecomment-686804207 - IS_EXTERNAL_PR: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }} + IS_EXTERNAL_PR: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }} steps: - name: Checkout uses: actions/checkout@v2 @@ -124,6 +124,8 @@ jobs: run: docker save minio/minio testcontainers/ryuk > ${{ github.workspace }}/docker-image-cache.tar run-it-s3: + # Do not run for forks since secrets will be missing and this will fail. + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }} needs: [run-it-minio] runs-on: ${{ matrix.os }} strategy: