Skip to content

Commit

Permalink
better example
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat0694 committed Mar 3, 2024
1 parent 825c08a commit 3903673
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ This action interacts with [sg-cli](https://github.com/StackGuardian/sg-cli/blob
## Example usage

```yaml
uses: stackguardian/workflow-run-action
with:
operation: 'workflow create --bulk --org demo-org --workflow-group demo-grp -- payload.json'
```
jobs:
execute-sg-cli:
runs-on: ubuntu-latest
env:
SG_API_TOKEN: ${{ secrets.SG_API_TOKEN }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: stackguardian/sg-cli-gh-action@main
with:
operation: 'workflow create --org demo-org --workflow-group gh-actions --run -- payload.json'
```
See [sg-cli docs](https://github.com/StackGuardian/sg-cli/blob/main/README.md) for the explanation on `payload.json`.

0 comments on commit 3903673

Please sign in to comment.