Skip to content

Commit 41377de

Browse files
Merge branch 'main' into patch-4
2 parents 7ecec12 + c16a17b commit 41377de

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

content/actions/creating-actions/metadata-syntax-for-github-actions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ inputs:
5858
5959
When you specify an input to an action in a workflow file or use a default input value, {% data variables.product.prodname_dotcom %} creates an environment variable for the input with the name `INPUT_<VARIABLE_NAME>`. The environment variable created converts input names to uppercase letters and replaces spaces with `_` characters.
6060

61-
For example, if a workflow defined the numOctocats and octocatEyeColor inputs, the action code could read the values of the inputs using the `INPUT_NUMOCTOCATS` and `INPUT_OCTOCATEYECOLOR` environment variables.
61+
For example, if a workflow defined the `numOctocats` and `octocatEyeColor` inputs, the action code could read the values of the inputs using the `INPUT_NUMOCTOCATS` and `INPUT_OCTOCATEYECOLOR` environment variables.
6262

6363
#### `inputs.<input_id>`
6464

@@ -76,6 +76,10 @@ For example, if a workflow defined the numOctocats and octocatEyeColor inputs, t
7676

7777
**Optional** A `string` representing the default value. The default value is used when an input parameter isn't specified in a workflow file.
7878

79+
#### `inputs.<input_id>.deprecationMessage`
80+
81+
**Optional** If the input parameter is used, this `string` is logged as a warning message. You can use this warning to notify users that the input is deprecated and mention any alternatives.
82+
7983
### `outputs`
8084

8185
**Optional** Output parameters allow you to declare data that an action sets. Actions that run later in a workflow can use the output data set in previously run actions. For example, if you had an action that performed the addition of two inputs (x + y = z), the action could output the sum (z) for other actions to use as an input.

0 commit comments

Comments
 (0)