Skip to content

Commit

Permalink
Set defaults.run.shell to bash (mlflow#4568)
Browse files Browse the repository at this point in the history
* Use bash

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* update all workflow configs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* update

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy authored Jul 16, 2021
1 parent d73b264 commit fea4dde
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cross-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branches:
- master

defaults:
run:
shell: bash

jobs:
set-matrix:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
# Run this action daily at 7:00 UTC
- cron: "0 7 * * *"

defaults:
run:
shell: bash

env:
CONDA_DIR: /usr/share/miniconda

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/labeling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- opened
- edited

defaults:
run:
shell: bash

jobs:
labeling:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ on:
- master
- branch-[0-9]+.[0-9]+

# Use `bash` by default for all `run` steps in this workflow:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun
defaults:
run:
# GitHub Actions runner executes commands specified in a run step via:
# $ bash --noprofile --norc -eo pipefail < commands >
#
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
shell: bash

env:
CONDA_DIR: /usr/share/miniconda

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-note-category.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- labeled
- unlabeled

defaults:
run:
shell: bash

jobs:
validate:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [master]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit fea4dde

Please sign in to comment.