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)
This commit is contained in:
Travis Plunk 2021-11-10 13:09:28 -08:00 committed by GitHub
parent 9cb33d48a8
commit 292c63430b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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