-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.job
More file actions
49 lines (40 loc) · 1.3 KB
/
run.job
File metadata and controls
49 lines (40 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#$ -pe smp 16
#$ -cwd
#$ -q VOSSHBC
#$ -m bea
#$ -M zjgilliam@uiowa.edu
#$ -o $HOME/boost-act/act/logs/myjob.out # Standard output log
#$ -e $HOME/boost-act/act/logs/myjob.err # Standard error log
export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/id_ed25519 -o IdentitiesOnly=yes"
git config --global push.default simple
# === Debug the remote to make sure it is ssh ===
mkdir -p $HOME/logs
touch $HOME/logs/git_debug.log
git remote -v >> $HOME/logs/git_debug.log
# === CONFIGURATION ===
export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/id_ed25519" # Use custom SSH key if needed
cd $HOME/boost-act
# === Git setup ===
git config --global user.name "argon"
git config --global user.email "argon@argon.argon"
# === Pull updates ===
git pull --ff-only origin main || {
echo "⚠️ Git pull failed. Resolve conflicts before proceeding."
exit 1
}
# === Activate Conda ===
source "$HOME/miniconda3/etc/profile.d/conda.sh"
conda activate act-newer || {
echo "❌ Failed to activate Conda environment."
exit 1
}
# === Run R Script ===
Rscript "$HOME/boost-act/act/tests/sleep/sleep_acc.R" || {
echo "❌ R script failed."
exit 1
}
# === Commit and Push ===
git add .
git commit -m "automated commit by that big argon thingy" || echo "📝 Nothing to commit."
git push origin main || echo "⚠️ Git push failed."