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

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (14 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (4)
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')"
      }
      Write-Host "Daily Branch Name: $branchName"
      Write-Host "##vso[task.setvariable variable=${{ parameters.DailyBranchVariableName }};]$branchName"
    displayName: Set daily docs branch name in $(${{ parameters.DailyBranchVariableName }})