actions

package
v1.223.0-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package actions provides utilities for GitHub Actions workflows. It supports detecting the GitHub Actions environment and accessing paths to $GITHUB_OUTPUT, $GITHUB_ENV, $GITHUB_PATH, and $GITHUB_STEP_SUMMARY files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatData

func FormatData(data map[string]string) string

FormatData formats a map of key-value pairs for GitHub Actions. Keys are sorted alphabetically for consistent output. Empty values are preserved as key= entries per GitHub Actions specification.

func FormatValue

func FormatValue(key, value string) string

FormatValue formats a single key-value pair for GitHub Actions. Uses key=value for single-line values and heredoc syntax for multiline values. The heredoc delimiter is ATMOS_EOF_<key> with collision detection to ensure the delimiter doesn't appear in the value content.

func GetEnvPath

func GetEnvPath() string

GetEnvPath returns the path to $GITHUB_ENV file, or empty string if not set. GITHUB_ENV is used to set environment variables for subsequent workflow steps.

func GetOutputPath

func GetOutputPath() string

GetOutputPath returns the path to $GITHUB_OUTPUT file, or empty string if not set. GITHUB_OUTPUT is used to pass outputs between workflow steps.

func GetPathPath

func GetPathPath() string

GetPathPath returns the path to $GITHUB_PATH file, or empty string if not set. GITHUB_PATH is used to prepend directories to the system PATH for subsequent steps.

func GetSummaryPath

func GetSummaryPath() string

GetSummaryPath returns the path to $GITHUB_STEP_SUMMARY file, or empty string if not set. GITHUB_STEP_SUMMARY is used to write job summary markdown.

func IsGitHubActions

func IsGitHubActions() bool

IsGitHubActions returns true if running in GitHub Actions. It checks for the GITHUB_ACTIONS environment variable set by GitHub.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL