Skip to content

Commit 2dbd810

Browse files
committed
Updated the GH Actions for RMG-Py to check if folder exists before cloning, and updated the GitHub Pages publish directory to point to ARC documentation.
1 parent 4398da3 commit 2dbd810

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/cont_int.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,15 @@ jobs:
5757
- name: Clone & checkout RMG-Py at specific SHA
5858
if: steps.cache-rmg-py.outputs.cache-hit != 'true'
5959
run: |
60-
git clone --filter=blob:none --no-checkout https://github.com/ReactionMechanismGenerator/RMG-Py.git RMG-Py
61-
cd RMG-Py
62-
git fetch --no-tags --prune origin ${RMG_PY_COMMIT}
63-
git checkout --detach ${RMG_PY_COMMIT}
60+
if [ -d RMG-Py/.git ]; then
61+
echo "Updating cached RMG-Py…"
62+
git -C RMG-Py fetch --depth=1 origin ${RMG_PY_COMMIT}
63+
git -C RMG-Py checkout --force ${RMG_PY_COMMIT}
64+
else
65+
echo "Cloning RMG-Py…"
66+
git clone --filter=blob:none --no-checkout https://github.com/ReactionMechanismGenerator/RMG-Py.git RMG-Py
67+
git -C RMG-Py checkout --detach ${RMG_PY_COMMIT}
68+
fi
6469
6570
- name: Cache RMG-database
6671
id: cache-rmg-db

0 commit comments

Comments
 (0)