From d8d44aa102c8abb087631044f65e7e4596a4c863 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Fri, 13 Sep 2024 13:30:36 +0100 Subject: [PATCH] Check for fork logic outside of PR (#159) --- .github/workflows/e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index bcc5c3f..7724649 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -13,8 +13,8 @@ - name: Checking for Fork shell: pwsh run: | - $isFork = $${{ github.event.pull_request.head.repo.fork }} - if($isFork) { + $isFork = "${{ github.event.pull_request.head.repo.fork }}" + if($isFork -eq "true") { echo "### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required." >> $env:GITHUB_STEP_SUMMARY }