Skip to content

A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner, and the toolkit for developing GitHub Actions.

License

Notifications You must be signed in to change notification settings

hugoalh-studio/ghactions-toolkit-powershell

Repository files navigation

GitHub Actions Toolkit (PowerShell)

⚖️ MIT

🗂️ GitHub: hugoalh-studio/ghactions-toolkit-powershell PowerShell Gallery: hugoalh.GitHubActionsToolkit

🆙 Latest Release Version (Latest Release Date)

A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.

🎯 Target

  • PowerShell >= v7.2.0

    💽 Require Software

    • GitHub Actions Runner
    • NodeJS >= v16.13.0 (Optional, for NodeJS based wrapper API)

🔗 Other Edition

🔰 Usage

  1. Install via PowerShell:
    Install-Module -Name 'hugoalh.GitHubActionsToolkit' -AcceptLicense
  2. Import at the script (<ScriptName>.ps1):
    Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Scope 'Local'

🧩 API (Excerpt)

ℹ️ Note

For the prettier documentation, can visit via:

Function

  • Add-GitHubActionsPATH
  • Add-GitHubActionsProblemMatcher
  • Add-GitHubActionsSecretMask
  • Add-GitHubActionsSummary
  • Add-GitHubActionsSummaryHeader
  • Add-GitHubActionsSummaryImage
  • Add-GitHubActionsSummaryLink
  • Add-GitHubActionsSummarySubscriptText
  • Add-GitHubActionsSummarySuperscriptText
  • Disable-GitHubActionsStdOutCommandEcho
  • Disable-GitHubActionsStdOutCommandProcess
  • Enable-GitHubActionsStdOutCommandEcho
  • Enable-GitHubActionsStdOutCommandProcess
  • Enter-GitHubActionsLogGroup
  • Exit-GitHubActionsLogGroup
  • Expand-GitHubActionsToolCacheCompressedFile
  • Export-GitHubActionsArtifact
  • Find-GitHubActionsToolCache
  • Get-GitHubActionsArtifact
  • Get-GitHubActionsDebugStatus
  • Get-GitHubActionsInput
  • Get-GitHubActionsOpenIdConnectToken
  • Get-GitHubActionsState
  • Get-GitHubActionsSummary
  • Get-GitHubActionsWebhookEventPayload
  • Get-GitHubActionsWorkflowRunUri
  • Import-GitHubActionsArtifact
  • Invoke-GitHubActionsToolCacheToolDownloader
  • Register-GitHubActionsToolCacheDirectory
  • Register-GitHubActionsToolCacheFile
  • Remove-GitHubActionsProblemMatcher
  • Restore-GitHubActionsCache
  • Save-GitHubActionsCache
  • Set-GitHubActionsEnvironmentVariable
  • Set-GitHubActionsOutput
  • Set-GitHubActionsState
  • Set-GitHubActionsSummary
  • Test-GitHubActionsEnvironment
  • Write-GitHubActionsDebug
  • Write-GitHubActionsError
  • Write-GitHubActionsFail
  • Write-GitHubActionsNotice
  • Write-GitHubActionsWarning

✍️ Example

  • Set-GitHubActionsOutput -Name 'foo' -Value 'bar'
  • Write-GitHubActionNotice -Message 'Hello, world!'

About

A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner, and the toolkit for developing GitHub Actions.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published