Skip to content

Commit

Permalink
Merge pull request #7 from sousadiego11/add-vars-instructions
Browse files Browse the repository at this point in the history
[ Variables ] - Add missing documentation for repository variables
  • Loading branch information
cplee committed Oct 3, 2023
2 parents 6e8a4d9 + 6680781 commit 4e01ec2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/beginner/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4e01ec2

Please sign in to comment.