diff --git a/.github/workflows/fitgen.yml b/.github/workflows/fitgen.yml index 21399b89..91fff2c4 100644 --- a/.github/workflows/fitgen.yml +++ b/.github/workflows/fitgen.yml @@ -14,6 +14,12 @@ jobs: id: check-comment run: | echo "trigger=${{ startsWith(github.event.comment.body, 'run fitgen') }}" >> $GITHUB_OUTPUT + + if [[ "${{ startsWith(github.event.comment.body, 'run fitgen') }}" == "false" ]]; then + echo "Aborted: no command found" + exit 0 + fi + if [[ "${{ github.event.comment.body }}" =~ ^run\ fitgen\ ([0-9]+\.[0-9]+)$ ]]; then echo "sdkversion=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT else