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/github-actions-core-powershell

Repository files navigation

GitHub Actions - Core (PowerShell)

Important

  • This project is transferred ownership from hugoalh Studio (hugoalh-studio) to hugoalh (hugoalh) and refactoring, some of the files may not modified/updated yet.
  • Looking the source code of the old PowerShell module hugoalh.GitHubActionsToolkit? Please visit the versions list and select the correct version.

⚖️ MIT

GitHub: hugoalh/github-actions-core-powershell PowerShell Gallery: hugoalh.GitHubActionsCore

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.

⚠️ Important

This is a partial refactor of the official toolkit, not all of the features in the official toolkit are available in here, and not all of the features in here are available in the official toolkit.

🌟 Features

  • Ability to use directly on GitHub Actions with PowerShell runtime without complex setup.

🔰 Begin

🎯 Targets

PowerShell Gallery
PowerShell >= v7.2.0 ✔️

Note

  • It is possible to use this module in other methods/ways which not listed in here, however those methods/ways are not officially supported, and should beware maybe cause security issues.

#️⃣ Resources Identifier

  • PowerShell Gallery:
    hugoalh.GitHubActionsCore
    

🧩 APIs

Default Prefix: GitHubActions

  • Add-PATH
  • Add-ProblemMatcher
  • Add-SecretMask
  • Add-Summary
  • Disable-StdOutCommandEcho
  • Disable-StdOutCommandProcess
  • Enable-StdOutCommandEcho
  • Enable-StdOutCommandProcess
  • Enter-LogGroup
  • Exit-LogGroup
  • Get-DebugStatus
  • Get-Input
  • Get-State
  • Get-WebhookEventPayload
  • Get-WorkflowRunUri
  • Remove-ProblemMatcher
  • Set-EnvironmentVariable
  • Set-Output
  • Set-State
  • Set-Summary
  • Test-Environment
  • Write-Debug
  • Write-Error
  • Write-Fail
  • Write-Notice
  • Write-Warning

Note

✍️ Examples

  • Set-Output -Name 'foo' -Value 'bar'
  • Write-GitHubActionsNotice -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