Merge pull request #10373 from MicrosoftDocs/main

Publish main to live, Tuesday 5:00 PM IST, 11/05
This commit is contained in:
Padma Jayaraman 2024-11-05 16:59:36 +05:30 committed by GitHub
commit 1b14a665ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +0,0 @@
param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1 Download buildcore script to local
echo "download build core script to local with source url: $buildCorePowershellUrl"
$repositoryRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
$buildCorePowershellDestination = "$repositoryRoot\.openpublishing.buildcore.ps1"
Invoke-WebRequest $buildCorePowershellUrl -OutFile $buildCorePowershellDestination
# Step-2: Run build core
echo "run build core script with parameters: $parameters"
$arguments = "-parameters:'$parameters'"
Invoke-Expression "$buildCorePowershellDestination $arguments"
exit $LASTEXITCODE