From 390367386f293ac7f27d184371f2e1074491229a Mon Sep 17 00:00:00 2001 From: AKSHAT TANDON Date: Sun, 3 Mar 2024 21:18:46 +0100 Subject: [PATCH] better example --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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`.