Skip to content

Commit

Permalink
ci(hpc): fetch and checkout detached head (MODFLOW-USGS#1429)
Browse files Browse the repository at this point in the history
* build from an isolated checkout on hpc
* don't indiscriminately update branches
  • Loading branch information
wpbonelli authored Nov 6, 2023
1 parent e125e2f commit d7babfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .hpc/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euxo pipefail

# fetch and checkout latest
ssh -l "$SSH_USERNAME" "$SSH_HOSTNAME" "cd $MF6_PROJ_ROOT && git fetch $GIT_REMOTE && git checkout $GIT_BRANCH && git pull"
ssh -l "$SSH_USERNAME" "$SSH_HOSTNAME" "cd $MF6_PROJ_ROOT && git fetch $GIT_REMOTE && git checkout $GIT_REMOTE/$GIT_BRANCH"
echo "Updated repository $MF6_PROJ_ROOT"
# submit a job to build mf6
jobid=$(ssh -l "$SSH_USERNAME" "$SSH_HOSTNAME" "sbatch --account=$SLURM_ACCOUNT --reservation=$SLURM_RESERVATION --parsable -D $MF6_PROJ_ROOT $MF6_PROJ_ROOT/$BUILD_SCRIPT" | tail -n 1)
Expand Down

0 comments on commit d7babfa

Please sign in to comment.