File: resolve-package-targeting.yml

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (29 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
parameters:
  - name: BuildTargetingString
    type: string
    default: '*'
  - name: PackagePropertiesFolder
    type: string
    default: ''
  - name: IncludeIndirect
    type: boolean
    default: true

steps:
  # whether we are running within a PR build or not, we need to walk the package properties and save them to
  # variable $(TargetingString) so that every other check and accept it as an argument.
  - pwsh: |
      $IncludeIndirect = [bool]::Parse("${{ parameters.IncludeIndirect }}")

      ./eng/scripts/resolve-package-info.ps1 `
          -ParameterTargetingStringSetting "${{ parameters.BuildTargetingString }}" `
          -PackagePropertiesFolder "${{ parameters.PackagePropertiesFolder }}" `
          -IncludeIndirect $IncludeIndirect
    displayName: Resolve Targeted Packages
    # if targeting has been set by matrix, this value will already be populated
    condition: eq(variables['TargetingString'], '')

  - pwsh: |
      Write-Host "This run is targeting: `n$(TargetingString)"
    displayName: Display Targeted Packages
    condition: ne(variables['TargetingString'], '')