mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 01:41:05 -05:00
Made an interface for Action groups
This commit is contained in:
parent
66864a7bb0
commit
938329d6a1
1 changed files with 33 additions and 0 deletions
33
src/utils/actions/action-group.ts
Normal file
33
src/utils/actions/action-group.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* Describes a group of inputs or outputs for a GitHub Action.
|
||||
*/
|
||||
export interface ActionGroup {
|
||||
/**
|
||||
* An optional type name of this group.
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* An optional description of this group.
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* An array of input or output names that belong to this group.
|
||||
*
|
||||
* The final input or output names will be prefixed with the group name.
|
||||
*/
|
||||
include?: string[];
|
||||
|
||||
/**
|
||||
* An array of input or output names that should be excluded from this group.
|
||||
*
|
||||
* These inputs or outputs will still appear in the top-level inputs or outputs.
|
||||
*/
|
||||
exclude?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* The default delimiter used when concatenating group and input/output names in action metadata templates.
|
||||
*/
|
||||
export const DEFAULT_ACTION_GROUP_DELIMITER = "-";
|
Loading…
Reference in a new issue