Skip to content

Commit

Permalink
added a way to tigger the workflow manually from github's web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
g-raffy committed Nov 7, 2023
1 parent 27fca61 commit 6cf46a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch: # so that this github workflow can be triggered manually
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug

jobs:
build:
Expand Down Expand Up @@ -59,4 +70,7 @@ jobs:
pytest
- name: Test with make
run: |
echo "Log level: $LOGLEVEL (this environment variable is unused yet)"
make clean; make test
env:
LOGLEVEL: ${{ inputs.logLevel }}

0 comments on commit 6cf46a3

Please sign in to comment.