Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 7c1e1bb

Browse files
authored
Add documentation on adding environment variables (#47)
Update documentation to reflect patch: de74c03
1 parent 5efef4c commit 7c1e1bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ you can define through hiera. For example:
134134
- self-hosted-custom
135135
```
136136

137+
## Adding environment variables to runner
138+
139+
The runner uses environment variables to decide pre/post-run scripts:
140+
https://docs.github.com/en/actions/hosting-your-own-runners/running-scripts-before-or-after-a-job#triggering-the-scripts
141+
142+
```yaml
143+
github_actions_runner::env:
144+
ACTIONS_RUNNER_HOOK_JOB_STARTED: "/cleanup_script"
145+
FOO: "bar"
146+
```
147+
148+
137149
## Limitations
138150

139151
Tested on Debian 9 (stretch), Debian 10 (buster) and CentOS7 hosts.

0 commit comments

Comments
 (0)