From 223de9c81583428da1d87484cc247326351dedb6 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 4 May 2023 10:17:32 -0700 Subject: [PATCH] generate-docs: Only update submodule pointer during scheduled builds --- .github/workflows/generate-docs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index d1ba9ad6d2..515fea1992 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -34,7 +34,13 @@ jobs: with: submodules: "recursive" + # Only reset the submodule pointer for scheduled builds. The reason to do + # this is to pick up any merge commits or anything that may have been + # missed in a merge, but not have any actual content. We don't want to do + # it otherwise because PRs should just use the submodule they're pointing + # at. - name: Switch doc submodule to master + if: github.event_name == 'schedule' run: cd doc && git checkout master - name: Fetch Dependencies