Skip to content

api_function_savegithubactionscache

hugoalh edited this page Dec 27, 2023 · 9 revisions

Save-GitHubActionsCache

πŸ‘€ Looking For Something Else

Looking for legacy Save-GitHubActionsCache? That is moved to here!

πŸ”˜ NodeJS Wrapper

This dependents and requires NodeJS to invoke.

  • Type: Function
  • In Version: >= v2.0.0
  • Alias:
    • Export-GitHubActionsCache

Save cache to share with the future jobs and/or workflows.

  • Save-GitHubActionsCache
      [-Path] <String[]>
      [-Key] <String>
      [-UploadChunkSize <UInt32>]
      [-UploadConcurrency <Byte>]

Parameter

Key

<String> Key of the cache.

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

Path

<String[]> Paths of the cache, support Glob.

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

UploadChunkSize

[Optional] <UInt32> Maximum chunk size for upload the cache, by byte.

  • 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.

  • 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