Skip to content

Commit

Permalink
Don't build a script when running directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinds committed Jul 3, 2023
1 parent 684b064 commit 5292624
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/guide-notebooks-slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ jobs:
steps:
- name: sbatch
run: |
cat<<EOF > start_node_runner.sh
#!/bin/bash
set -ex
cd
./run.sh
EOF
jobid=$(sbatch -t 10 --mem 16G -p gablab -D ${HOME}/actions-runner run.sh | cut -d ' ' -f 4)
jobid=$(sbatch \
-t 10 \
--mem 16G \
-p gablab \
-D ${HOME}/actions-runner \
run.sh | cut -d ' ' -f 4)
while [ 1 ]; do
node=$(squeue --noheader -j ${jobid} -o "%N")
if [ -z ${node} ]; then
Expand Down

0 comments on commit 5292624

Please sign in to comment.