Skip to content

legacy_api_function_savegithubactionscache

hugoalh edited this page Dec 27, 2023 · 3 revisions

Save-GitHubActionsCache

πŸ‘Ž Deprecated

This is officially deprecated, maybe throw warning in the latest version, and maybe remove in the future version.

πŸ”˜ NodeJS Wrapper

This dependents and requires NodeJS to invoke.

  • Type: Function
  • In Version: v0.5.0 ~ v1.7.X
  • Alias:
    • Export-GitHubActionsCache

Save cache to persist the data and/or share with the future jobs in the same workflow.

  • # Parameter Set: Path (Default)
    Save-GitHubActionsCache
      [-Key] <String>
      [-Path] <String[]>
      [-UploadChunkSize <UInt32>]
      [-UploadConcurrency <Byte>]
  • # Parameter Set: LiteralPath
    Save-GitHubActionsCache
      [-Key] <String>
      -LiteralPath <String[]>
      [-UploadChunkSize <UInt32>]
      [-UploadConcurrency <Byte>]

Parameter

Key

<String> Key of the cache.

  • Parameter Set:
    • LiteralPath
    • Path
  • Position: 0
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Name

LiteralPath

<String[]> Literal paths of the cache.

  • Parameter Set: LiteralPath
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • LiteralFile
    • LiteralFiles
    • LiteralPaths
    • LP
    • PSPath
    • PSPaths

Path

<String[]> Paths of the cache.

  • Parameter Set: Path
  • Position: 1
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: True βœ”οΈ
  • Alias:
    • File
    • Files
    • Paths

UploadChunkSize

[Optional] <UInt32> Maximum chunk size of the cache, by KB in range 1KB~1GB (i.e.: 1~1048576).

  • Parameter Set:
    • LiteralPath
    • Path
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • ChunkSize
    • ChunkSizes
    • UploadChunkSizes

UploadConcurrency

[Optional] <Byte> Number of parallel uploads of the cache, in range 1~16.

  • Parameter Set:
    • LiteralPath
    • Path
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Concurrency

Output

<UInt64> ID of the cache.

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally