Skip to content
Discussion options

You must be logged in to vote

@fowl2 (and 👀 @rpothin)
In Azure DevOps you can use the Prepend Path logging action. Examples:

  • windows agent:
- pwsh: |
    $pac = Join-Path $env:POWERPLATFORMTOOLS_PACCLIPATH pac tools
    echo "##vso[task.prependpath]$pac"
  displayName: 'Add PAC to Path' 
  • linux agent:
- pwsh: |
    $pac = Join-Path $env:POWERPLATFORMTOOLS_PACCLIPATH pac_linux tools
    echo "##vso[task.prependpath]$pac"
  displayName: 'Add PAC to Path' 

It will add the directory to PATH for all the subsequent tasks, and you can easily use pac in a script.

I haven't tested GitHub Actions yet. But the same should be achieved by adding to GITHUB_PATH environment variable.

UPDATE 2023-12-31:
In GitHub Actions you can u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tehcrashxor
Comment options

Answer selected by petrochuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants