Skip to content

api_function_writegithubactionsfilecommand

hugoalh edited this page Dec 27, 2023 · 10 revisions

Write-GitHubActionsFileCommand

  • Type: Function
  • In Version: >= v1.2.0

Write file command for the current step.

πŸ…°οΈ Advanced

This function is suitable for advanced users, useful when GitHub Actions has new file commands but this module has not include yet.

  • Write-GitHubActionsFileCommand
      [-FileCommand] <String>
      [-Name] <String>
      [-Value] <String>
      [-Optimize]

Parameter

FileCommand

  • (>= v2.0.0) <String> File command.
  • (v1.4.X ~ v1.7.X) <String> File command. (LEGACY: Literal path of the file command.)

β€’

  • Position: 0
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name:
    • (>= v2.0.0) False ❌
    • (< v2.0.0) True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • (v1.2.X ~ v1.7.X) LiteralPath (LEGACY)
    • (v1.2.X ~ v1.7.X) Path (LEGACY)

Name

<String> Name.

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

Optimize

(>= v2.0.0) [Optional] Whether to have an optimize operation by replace exist command instead of add command directly.

  • Position: Named
  • Accept Pipeline Input By Property Name: True βœ”οΈ

Value

<String> Value.

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

Output

<Void>

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally