Create greet workflow #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # name of the workflow | |
| name: greet | |
| # when the workflow should run | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| # independent jobs in the workflow | |
| jobs: | |
| # this workflow just has one job called "greet" | |
| greet: | |
| # the operating system to use for this workflow | |
| runs-on: ubuntu-latest | |
| # list of steps in the workflow | |
| steps: | |
| # use an action provided by github to checkout the repo | |
| - uses: actions/checkout@v3 | |
| # a custom step that runs a couple shell commands | |
| - name: List | |
| run: | | |
| echo "listing files in the bioinitio directory" | |
| ls cm_pkg | |
| # a custom step that runs R code | |
| - name: Greet | |
| run: print("Hello, world!") | |
| # Replace `shell: Rscript {0}` with `shell: python {0}` to run Python code instead! | |
| shell: python {0} |