Skip to content

Update run conditions for workflows #7

Update run conditions for workflows

Update run conditions for workflows #7

Workflow file for this run

name: run install script
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
push:
branches:
- develop
paths:
- 'scripts/ubuntu.sh'
- '.github/workflows/install_script.yml'
jobs:
run_install_script:
runs-on: ubuntu-latest
strategy:
matrix:
branch: ['develop', 'stable'] # 'develop' can be anything that's not 'stable'. This triggers an if statement in ubuntu.sh
build_hdf5: ['NO', 'hdf5-1_12_0']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: run install script
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/scripts
chmod +x ubuntu.sh
./ubuntu.sh ${{ matrix.branch }} ${{ matrix.build_hdf5 }}
# use matrix to have 2 jobs [develop, stable]
# ./ubuntu.sh stable