From 292c63430bb69a1eb327f8ba30592f5b4dcb8dcf Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 10 Nov 2021 13:09:28 -0800 Subject: [PATCH] Add import so we can use common GitHub workflow function. (#16433) * Update daily.yml * Update daily.yml * try changing error action (#16435) * Add exit 0 (#16436) --- .github/workflows/daily.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 55b7ba38f..87ea7725c 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -72,14 +72,17 @@ jobs: git status --short - name: Check if we need to create a PR run: | + $ErrorActionPreference = 'continue' git diff --quiet ThirdPartyNotices.txt $exitCode = $LASTEXITCODE Write-Verbose -Message "Exit code: $exitCode" -Verbose if ($LASTEXITCODE -ne 0) { + Import-Module ./.github/workflows/GHWorkflowHelper Set-GWVariable -Name CREATE_PR -Value 'true' } else { Write-Verbose "No difference found. Not creating a PR." -Verbose } + exit 0 - name: Create Pull Request uses: peter-evans/create-pull-request@v3 id: cprtpn