actions

package
v3.0.0-alpha.40 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package actions is just a struct to represent a github action.yml file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branding

type Branding struct {
	Icon  string `yaml:"icon,omitempty"`
	Color string `yaml:"color,omitempty"`
}

type CompositeAction

type CompositeAction struct {
	Name        string                                          `yaml:"name"`
	Description string                                          `yaml:"description"`
	Author      string                                          `yaml:"author,omitempty"`
	Branding    *Branding                                       `yaml:"branding,omitempty"`
	Inputs      *orderedmap.OrderedMap[string, Input]           `yaml:"inputs,omitempty"`
	Outputs     *orderedmap.OrderedMap[string, CompositeOutput] `yaml:"outputs,omitempty"`
	Runs        CompositeRuns                                   `yaml:"runs"`
}

type CompositeOutput

type CompositeOutput struct {
	Value       string `yaml:"value"`
	Description string `yaml:"description"`
}

type CompositeRuns

type CompositeRuns struct {
	Using string          `yaml:"using"`
	Steps []CompositeStep `yaml:"steps"`
}

type CompositeStep

type CompositeStep struct {
	Name             string                                 `yaml:"name,omitempty"`
	Id               string                                 `yaml:"id,omitempty"`
	If               string                                 `yaml:"if,omitempty"`
	Shell            string                                 `yaml:"shell,omitempty"`
	WorkingDirectory string                                 `yaml:"working-directory,omitempty"`
	Env              *orderedmap.OrderedMap[string, string] `yaml:"env,omitempty"`
	Run              string                                 `yaml:"run,omitempty"`
	Uses             string                                 `yaml:"uses,omitempty"`
	With             *orderedmap.OrderedMap[string, string] `yaml:"with,omitempty"`
}

type Input

type Input struct {
	DeprecationMessage string `yaml:"deprecationMessage,omitempty"`
	Description        string `yaml:"description"`
	Required           bool   `yaml:"required,omitempty"`
	Default            string `yaml:"default,omitempty"`
}

Jump to

Keyboard shortcuts

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