File: set-daily-docs-branch-name.yml

package info (click to toggle)
python-azure 20251014%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 766,472 kB
  • sloc: python: 6,314,744; ansic: 804; javascript: 287; makefile: 198; sh: 198; xml: 109
file content (14 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
parameters:
  - name: DailyBranchVariableName
    type: string
    default: TargetBranchName

steps:
  - pwsh: |
      $branchName = $env:DAILYDOCSBRANCHNAMEOVERRIDE
      if (!$branchName) {
        $branchName = "daily/$(Get-Date -Format 'yyyy-MM-dd')-ignore-build"
      }
      Write-Host "Daily Branch Name: $branchName"
      Write-Host "##vso[task.setvariable variable=${{ parameters.DailyBranchVariableName }};]$branchName"
    displayName: Set daily docs branch name in $(${{ parameters.DailyBranchVariableName }})