Skip to content

Commit

Permalink
Change bash variable detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dhower-qc committed Jul 29, 2024
1 parent 6b10515 commit e00dff5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
uses: actions/checkout@v4
- name: Setup apptainer
uses: eWaterCycle/[email protected]
- name: Read container tag
run: echo "CONTAINER_TAG=$(cat bin/.container-tag)" >> $GITHUB_ENV
- name: Get container from cache
id: cache-sif
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd $ROOT

CONTAINER_TAG=`cat ${ROOT}/bin/.container-tag`

if [ -z ${GITHUB_ACTIONS+x} ]; then
if [ -v GITHUB_ACTIONS ]; then
CONTAINER_PATH=${ROOT}/.singularity/image-$CONTAINER_TAG.sif
SINGULARITY_CACHE=--disable-cache
else
Expand Down

0 comments on commit e00dff5

Please sign in to comment.