File: update_snippet.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 (19 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
  ServiceDirectory: ''
  ValidateFormatting: false
  EnvVars: {}

steps:
  - task: UsePythonVersion@0
    displayName: 'Use Python 3.9'
    inputs:
     versionSpec: '3.9'
    condition: succeededOrFailed()

  - task: PythonScript@0
    displayName: 'Update Snippets'
    inputs:
      scriptPath: 'tools/azure-sdk-tools/ci_tools/snippet_update/python_snippet_updater.py'
      arguments: >-
        ${{ parameters.ScanPath }}
    condition: and(succeededOrFailed(), ne(variables['Skip.UpdateSnippet'],'true'))