Skip to content

Commit ef4a6e3

Browse files
committed
Update docs
1 parent cc05861 commit ef4a6e3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/actions.schema.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,23 @@ Arguments can only be of type `string` and are always required.
7676

7777
The action provides basic templating for all file based on arguments, options and environment variables.
7878

79+
### Arguments and options
80+
7981
For templating, standard Go templating engine is used.
8082
Refer to [documentation](https://pkg.go.dev/text/template).
8183

8284
Arguments and Options are available by their machine names - `{{ .myArg1 }}`, `{{ .optStr }}`, `{{ .optArr }}`, etc.
8385

84-
Environment variables:
86+
### Predefined variables:
87+
88+
1. `current_uid` - current user ID. In Windows environment set to 0.
89+
2. `current_gid` - current group ID. In Windows environment set to 0.
90+
3. `current_working_dir` - app working directory.
91+
4. `actions_base_dir` - actions base directory where the action was found. By default, current working directory,
92+
but other paths may be provided by plugins.
93+
5. `action_dir` - directory of the action file.
94+
95+
### Environment variables:
8596

8697
| __Expression__ | __Meaning__ |
8798
|--------------------|----------------------------------------------------------------------|

0 commit comments

Comments
 (0)