mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7892 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Ben Broderick Phillips <[email protected]>
15 lines
376 B
PowerShell
15 lines
376 B
PowerShell
echo "git add -A"
|
|
git add -A
|
|
|
|
echo "git diff --name-status --cached --exit-code"
|
|
git diff --name-status --cached --exit-code
|
|
|
|
if ($LastExitCode -ne 0) {
|
|
echo "##vso[task.setvariable variable=HasChanges]$true"
|
|
echo "Changes detected so setting HasChanges=true"
|
|
}
|
|
else {
|
|
echo "##vso[task.setvariable variable=HasChanges]$false"
|
|
echo "No changes so skipping code push"
|
|
}
|