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:
parent
9cb33d48a8
commit
292c63430b
3
.github/workflows/daily.yml
vendored
3
.github/workflows/daily.yml
vendored
|
@ -72,14 +72,17 @@ jobs:
|
||||||
git status --short
|
git status --short
|
||||||
- name: Check if we need to create a PR
|
- name: Check if we need to create a PR
|
||||||
run: |
|
run: |
|
||||||
|
$ErrorActionPreference = 'continue'
|
||||||
git diff --quiet ThirdPartyNotices.txt
|
git diff --quiet ThirdPartyNotices.txt
|
||||||
$exitCode = $LASTEXITCODE
|
$exitCode = $LASTEXITCODE
|
||||||
Write-Verbose -Message "Exit code: $exitCode" -Verbose
|
Write-Verbose -Message "Exit code: $exitCode" -Verbose
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Import-Module ./.github/workflows/GHWorkflowHelper
|
||||||
Set-GWVariable -Name CREATE_PR -Value 'true'
|
Set-GWVariable -Name CREATE_PR -Value 'true'
|
||||||
} else {
|
} else {
|
||||||
Write-Verbose "No difference found. Not creating a PR." -Verbose
|
Write-Verbose "No difference found. Not creating a PR." -Verbose
|
||||||
}
|
}
|
||||||
|
exit 0
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
id: cprtpn
|
id: cprtpn
|
||||||
|
|
Loading…
Reference in a new issue