...

Text file src/github.com/Azure/azure-sdk-for-go/eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml

Documentation: github.com/Azure/azure-sdk-for-go/eng/common/pipelines/templates/steps

     1parameters:
     2  - name: DailyBranchVariableName
     3    type: string
     4    default: TargetBranchName
     5
     6steps:
     7  - pwsh: |
     8      $branchName = $env:DAILYDOCSBRANCHNAMEOVERRIDE
     9      if (!$branchName) { 
    10        $branchName = "daily/$(Get-Date -Format 'yyyy-MM-dd')"
    11      }
    12      Write-Host "Daily Branch Name: $branchName"
    13      Write-Host "##vso[task.setvariable variable=${{ parameters.DailyBranchVariableName }};]$branchName"
    14    displayName: Set daily docs branch name in $(${{ parameters.DailyBranchVariableName }})

View as plain text