forked from actions/runner
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Test a workflow with non secret Action Variables
ChristopherHX edited this page Nov 6, 2022
·
1 revision
This feature requires runner.server version 3.10.2 or later.
on: push
jobs:
_:
runs-on: self-hosted
steps:
- run: echo ${{ vars.MYVAR }}
You can provide a value for vars.MYVAR
by using the --var
/ --var-file
flags.
For example
Runner.Client --var MYVAR=myvalue
If you want to provide the value via a prompt only specify the name of the variable, in interactive / watch mode this will be saved and reused until you close Runner.Client
Runner.Client --var MYVAR
Finally you can also set it via an yaml file like this
vars.yml
MYVAR: myvalue
Runner.Client --var-file vars.yml