From 73a89019297816636989de1b46b4cf78cab2906a Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Jan 2024 17:14:03 +0200 Subject: [PATCH] build: Fix publishing snapshots for master branch. (#778) --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a038eaca..adb96a11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ on: # Currently you cannot use ${{ env.IS_FORK }} for some reason, which is why you might need to copy-paste some of these. env: REPOSITORY: ${{ github.repository }} - IS_FORK: ${{ github.event.pull_request.head.repo.full_name != vars.CURRENT_REPO || github.repository != vars.CURRENT_REPO }} + IS_FORK: ${{ github.event.pull_request.head.repo.fork == true }} IS_PR: ${{ github.event_name == 'pull_request' }} EVENT_NAME: ${{ toJSON(github.event_name) }} # format: username:branch @@ -48,7 +48,7 @@ env: jobs: build-and-test: - environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != vars.CURRENT_REPO && 'external-collaborators' || '' }} + environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork == true && 'external-collaborators' || '' }} runs-on: ${{ matrix.os }} strategy: fail-fast: false