include description about actions in readme
This commit is contained in:
@@ -47,6 +47,33 @@ jobs:
|
||||
|
||||
It is highly recommended to use [github secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) instead of plaintext inclusions for more sensitive data like the IP or the password.
|
||||
|
||||
## Using environment variables
|
||||
You can use env variables to your hearts content, you just need to use [context properties](https://docs.github.com/en/actions/learn-github-actions/contexts) notation.
|
||||
|
||||
### Examples:
|
||||
|
||||
**Runtime variables:**
|
||||
|
||||
```yml
|
||||
commands: '["say actor ${{ github.actor }}"]'
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
**Custom Variables:**
|
||||
|
||||
```yml
|
||||
env:
|
||||
DAY_OF_WEEK: Monday
|
||||
|
||||
...
|
||||
commands: '["say day ${{ env.DAY_OF_WEEK }}"]'
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
## Credits
|
||||
|
||||
- Node-RCON taken from https://github.com/tehbeard/node-rcon by @tehbeard.
|
||||
|
||||
Reference in New Issue
Block a user