diff --git a/README.md b/README.md index 3ea7870..cc1b595 100644 --- a/README.md +++ b/README.md @@ -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' -``` \ No newline at end of file +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`.