Documentation
¶
Overview ¶
Package output provides helpers for outputting data to GitHub Actions and JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlannedPromotion ¶
type PlannedPromotion struct {
Source string `json:"source"`
Target string `json:"target"`
SHA string `json:"sha"`
Version string `json:"version"`
}
PlannedPromotion represents a single planned promotion.
type PromotionPlanResult ¶
type PromotionPlanResult struct {
Promotions []PlannedPromotion `json:"promotions"`
DryRun bool `json:"dry_run"`
}
PromotionPlanResult represents the output of the promote plan command.
type SetupResult ¶
type SetupResult struct {
HeadSHA string `json:"head_sha"`
Version string `json:"version"`
PreviousTag string `json:"previous_tag,omitempty"`
ChangelogBaseSHA string `json:"changelog_base_sha,omitempty"`
RunBuilds map[string]bool `json:"run_builds,omitempty"`
RunDeploys map[string]string `json:"run_deploys,omitempty"` // "true", "false", or "pending"
BaseSHAs map[string]string `json:"base_shas,omitempty"`
}
SetupResult represents the output of the orchestrate setup command.
func (*SetupResult) WriteGHAOutput ¶
func (r *SetupResult) WriteGHAOutput() error
WriteGHAOutput writes the setup result to $GITHUB_OUTPUT for workflow consumption.
Click to show internal directories.
Click to hide internal directories.