When I use setup-miniconda, it uses shell: bash -l {0} in GitHub Actions:
jobs:
foo:
name: Foo
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
When I use CML. It only uses shell: bash without -l {0}.
I found some explanation at GitHub Actions doc:
You can set the
shellvalue to a template string usingcommand […options] {0} [..more_options]. GitHub interprets the first whitespace-delimited word of the string as the command, and inserts the file name for the temporary script at{0}.
However, I am still not clear what are the functions of -l and {0}? For -l, is it a parameter of bash?
Appreciate for some explanations!