Skip to content

Commit

Permalink
add pre run cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed May 16, 2024
1 parent f07027e commit d1b2f80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/run-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
environment_file:
required: true
type: string
prerun_cmd:
required: false
type: string
pipeline_cmd:
required: true
type: string
name:
required: true
type: string

jobs:
Run-Pipeline:
runs-on: ubuntu-latest
Expand All @@ -25,6 +27,9 @@ jobs:
environment-file: ${{inputs.environment_file}}
cache-environment: true
cache-downloads: true
- name: Run pre pipeline cmd
if: prerun_cmd
run: ${{inputs.prerun_cmd}}
- name: ${{inputs.name}}
run: ${{inputs.pipeline_cmd}}
shell: micromamba-shell {0}

0 comments on commit d1b2f80

Please sign in to comment.