Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-beta authored Feb 15, 2022
1 parent cfeb3dd commit a88b2b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ runs:
shell: bash

- name: Run Modelica Script
run: omc ${{ inputs.script-path }}
if: ${{ inputs.script-path != '' }}
run: |
if [ -z "${{ inputs.script-path }}" ]; then echo "No OMShell script to run"; exit 0; fi
omc ${{ inputs.script-path }}
shell: bash

- name: Run OMShell
run: |
if [ -z "${{ inputs.script }}" ]; then echo "No OMShell commands to run"; exit 0; fi
printf '${{ inputs.script }}' > runScript.mos
echo "Created script: "
cat runScript.mos
omc runScript.mos
if: ${{ inputs.script != '' }}
shell: bash

branding:
Expand Down

0 comments on commit a88b2b4

Please sign in to comment.