From 7c8994d733f8a8c92f3d799905d3118e84b033df Mon Sep 17 00:00:00 2001 From: Joe Wallwork Date: Fri, 9 Jan 2026 17:12:46 +0000 Subject: [PATCH 1/2] Init and update submodules for Animate and Movement --- docker/Dockerfile.firedrake-parmmg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile.firedrake-parmmg b/docker/Dockerfile.firedrake-parmmg index 54dc60e..856aa00 100644 --- a/docker/Dockerfile.firedrake-parmmg +++ b/docker/Dockerfile.firedrake-parmmg @@ -12,6 +12,8 @@ RUN git clone https://github.com/mesh-adaptation/adapt_common.git && \ git clone https://github.com/mesh-adaptation/animate.git && \ git clone https://github.com/mesh-adaptation/movement.git && \ git clone https://github.com/mesh-adaptation/goalie.git && \ + cd animate && git submodule init && git submodule update && cd .. && \ + cd movement && git submodule init && git submodule update && cd .. && \ pip install -e adapt_common[dev] && \ pip install -e animate[dev] && \ pip install -e movement[dev] && \ From 09bc056e56ee9adbdab23d336f93233aca6d9d68 Mon Sep 17 00:00:00 2001 From: Joe Wallwork Date: Mon, 12 Jan 2026 08:32:35 +0000 Subject: [PATCH 2/2] Account for adapt_common in build_docs workflow; formatting --- .github/workflows/build_docs.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 96967b5..7de16ff 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -36,19 +36,19 @@ jobs: - name: Set up environment run: | APIURL="https://api.github.com/repos/mesh-adaptation" - echo "REPOS=${APIURL}/animate ${APIURL}/goalie ${APIURL}/movement ${APIURL}/UM2N" >> $GITHUB_ENV - echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV + echo "REPOS=${APIURL}/adapt_common ${APIURL}/animate ${APIURL}/goalie ${APIURL}/movement ${APIURL}/UM2N" >> ${GITHUB_ENV} + echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> ${GITHUB_ENV} - name: Check for updates in repositories id: check_repos run: | - for REPO in $REPOS; do - echo "Checking $REPO" - COMMITS=$(curl -L -H "Authorization: token $GITHUB_TOKEN" "$REPO/commits?sha=main&since=$(date -d '24 hours ago' +'%Y-%m-%dT%H:%M:%SZ')") - echo $COMMITS + for REPO in ${REPOS}; do + echo "Checking ${REPO}" + COMMITS=$(curl -L -H "Authorization: token ${GITHUB_TOKEN}" "$REPO/commits?sha=main&since=$(date -d '24 hours ago' +'%Y-%m-%dT%H:%M:%SZ')") + echo ${COMMITS} if [ ${#COMMITS} -gt 10 ]; then - echo "Found new commits in $REPO" - echo "updates_found=true" >> $GITHUB_OUTPUT + echo "Found new commits in ${REPO}" + echo "updates_found=true" >> ${GITHUB_OUTPUT} fi done @@ -66,7 +66,7 @@ jobs: - name: Export PYTHONPATH run: | PYTHONVERSION=$(python3 -c "import sys; print('.'.join(sys.version.split('.')[:2]))") - echo "PYTHONPATH=/opt/firedrake:/root/animate:/root/goalie:/root/movement:/root/um2n:/root/.local/lib/python${PYTHONVERSION}/site-packages" >> $GITHUB_ENV + echo "PYTHONPATH=/opt/firedrake:/root/adapt_common:/root/animate:/root/goalie:/root/movement:/root/um2n:/root/.local/lib/python${PYTHONVERSION}/site-packages" >> ${GITHUB_ENV} - uses: actions/checkout@v5 with: @@ -74,10 +74,15 @@ jobs: - name: Update Animate, Goalie, Movement, and UM2N run: | - git config --global --add safe.directory '*' - for REPO in animate goalie movement UM2N; do - cd /root/${REPO} + git config --global --add safe.directory adapt_common + git config --global --add safe.directory animate + git config --global --add safe.directory goalie + git config --global --add safe.directory movement + git config --global --add safe.directory UM2N + for REPO in adapt_common animate goalie movement UM2N; do + cd "/root/${REPO}" git pull + cd - done working-directory: /root/output/ shell: bash