Skip to content

Commit

Permalink
Explicitly set -e in Actions scripts (ufs-community#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa authored May 15, 2024
1 parent fc0ca6f commit e3ce62e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/format-check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Actions invokes script with: bash -e <script>

set -a
set -ae

unformatted() {
set -x
Expand Down
4 changes: 1 addition & 3 deletions .github/scripts/install-conda.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Actions invokes script with: bash -e <script>

set -ux
set -eux
source $(dirname ${BASH_SOURCE[0]})/common.sh
url=https://github.com/conda-forge/miniforge/releases/download/23.1.0-4/Miniforge3-23.1.0-4-Linux-x86_64.sh
installer=/tmp/$(basename $url)
Expand Down
5 changes: 1 addition & 4 deletions .github/scripts/link-check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Actions invokes script with: bash -e <script>

set -a

set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
cd docs
Expand Down
3 changes: 1 addition & 2 deletions .github/scripts/make-package.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Actions invokes script with: bash -e <script>

set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
set -x
Expand Down
3 changes: 1 addition & 2 deletions .github/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Actions invokes script with: bash -e <script>

set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
set -ux
Expand Down
4 changes: 1 addition & 3 deletions .github/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Actions invokes script with: bash -e <script>

set -a
set -ae

SUPPORTED_PYTHON_VERSIONS=( 3.9 3.10 3.11 3.12 )

Expand Down

0 comments on commit e3ce62e

Please sign in to comment.