Skip to content

Commit

Permalink
update readme with instructions for running github actions locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny Guduru committed Mar 8, 2024
1 parent 4515a4c commit b4c824b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,22 @@
## Commands

`go run main.go setup` - runs the setup wizard to create a feature flag for a project and environment.

## Running Github Actions locally

To run the Github Actions locally, you need to install the `act` tool.
```bash
brew install act
```

Then you can run the Github Actions locally by running the following command.
```bash
act -s GITHUB_TOKEN="$(gh auth token)"
```

Note: You need to have the `gh` tool installed and authenticated.

Example of how to run the `release-please` action locally.
```bash
act -s GITHUB_TOKEN="$(gh auth token)" -j release-please -W ./.github/workflows/release-please.yml
```

0 comments on commit b4c824b

Please sign in to comment.