From f419bd89305cf12c77e20d7f76c015a953634577 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 20 Aug 2023 12:33:34 -0700 Subject: [PATCH] Try to ensure we checkout origin/stable-docs refs #1 --- .github/workflows/stable-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stable-docs.yml b/.github/workflows/stable-docs.yml index e750b70..906dac0 100644 --- a/.github/workflows/stable-docs.yml +++ b/.github/workflows/stable-docs.yml @@ -41,8 +41,8 @@ jobs: - name: Handle Commit to Main if: contains(github.event.head_commit.message, '!stable-docs') run: | - git fetch origin stable-docs:stable-docs - git checkout stable-docs + git fetch origin + git checkout -b stable-docs origin/stable-docs # !stable-docs should only be in the one commit, so apply changes from that commit PATCH=$(git show ${{ github.sha }} -- docs/) # Check if patch is non-empty