Skip to content

api_function_invokegithubactionstoolcachetooldownloader

hugoalh edited this page Dec 27, 2023 · 8 revisions

Invoke-GitHubActionsToolCacheToolDownloader

πŸ”˜ NodeJS Wrapper

This dependents and requires NodeJS to invoke.

  • Type: Function
  • In Version: >= v0.5.0

Download a tool from URI and stream it into a file.

  • Invoke-ToolCacheToolDownloader
      [-Uri] <Uri>
      [-Destination <String>]
      [-Authorization <String>]
      [-Header <Hashtable>]

Parameter

Authorization

[Optional] <String> Authorization of the URI request.

  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Auth

Destination

[Optional] <String> Path for the tool destination.

  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Target

Header

[Optional] <Hashtable> Headers of the URI request.

  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Headers

Uri

<Uri> URI of the tool.

  • Position: 0
  • Accept Pipeline Input: True βœ”οΈ
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Source
    • Url

Output

<String> Absolute path of the downloaded tool.

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally