Skip to content

Commit

Permalink
Merge pull request #81 from cyber-dojo/add-kosli-create-flow
Browse files Browse the repository at this point in the history
Add kosli-create-flow command to workflow
  • Loading branch information
JonJagger authored Dec 22, 2024
2 parents 4b82fe1 + a6a6896 commit be3845e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,23 @@ jobs:
echo "image_name_previous=${IMAGE_NAME_PREVIOUS}" >> ${GITHUB_OUTPUT}
- name: Setup Kosli CLI
if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }}
uses: kosli-dev/setup-cli-action@v2
with:
version: ${{ vars.KOSLI_CLI_VERSION }}

- name: Attest pull-request evidence to Kosli
if: ${{ github.ref == 'refs/heads/main' }}
- name: Create Kosli Flow
if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }}
run:
kosli create flow "${KOSLI_FLOW}"
--description="Test runner"
--template-file=.kosli.yml

- name: Begin Kosli Trail
if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }}
run:
kosli begin trail "${{ env.KOSLI_TRAIL }}"
--flow="${{ env.KOSLI_FLOW }}"
--template-file=.kosli.yml


pull-request:
Expand Down

0 comments on commit be3845e

Please sign in to comment.