Skip to content

Commit

Permalink
[CI] .github/workflows/demo.yml: allow chooing script name for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Mar 28, 2024
1 parent ab36a8e commit 39b5e22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ name: Usage Demo
on:
workflow_dispatch:
inputs:
script:
description: "Script"
required: true
default: "demo.py"
verbose:
description: "Verbose (0/1)"
required: true
Expand Down Expand Up @@ -74,7 +78,7 @@ jobs:
- name: Run the demo
run: |
source .venv/bin/activate
VERBOSE=${{ github.event.inputs.verbose }} FAST=${{ github.event.inputs.fast }} BUILD_CONFIG=${{ github.event.inputs.build_config }} python examples/demo.py
VERBOSE=${{ github.event.inputs.verbose }} FAST=${{ github.event.inputs.fast }} BUILD_CONFIG=${{ github.event.inputs.build_config }} python examples/${{ github.event.inputs.script }}
- uses: actions/upload-artifact@v4
with:
name: demo-export
Expand Down

0 comments on commit 39b5e22

Please sign in to comment.