diff --git a/src/beginner/index.md b/src/beginner/index.md index 2752145..4c9a92d 100644 --- a/src/beginner/index.md +++ b/src/beginner/index.md @@ -93,6 +93,14 @@ act -j 'test' > This example will run **all jobs** named `test` in **all workflows** that trigger on `push` event +# Vars + +To run `act` with repository variables that are acessible inside the workflow via ${{ vars.VARIABLE }}, you can enter them interactively or load them from a file. The following options are available for providing github repository variables: + +- `act --var VARIABLE=somevalue` - use `somevalue` as the value for `VARIABLE`. +- `act --var-file my.variables` - load variables values from `my.variables` file. +- The variables file format is the same as `.env` format + ## Secrets To run `act` with secrets, you can enter them interactively, supply them as environment variables or load them from a file. The following options are available for providing secrets: