From 3dbdb40fef6fa3a908331161f58d1b82c76723fb Mon Sep 17 00:00:00 2001 From: Charles Frye Date: Thu, 26 Sep 2024 23:54:40 +0000 Subject: [PATCH] handle headless state in git pull --- .github/workflows/build-docs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 9de47fd86..6505d750b 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -77,11 +77,13 @@ jobs: fetch-depth: 1 path: modal/examples - - name: Set examples remote to HTTPS + - name: Set up git environment for pull in invoke task working-directory: modal/examples run: | git remote set-url origin https://github.com/modal-labs/modal-examples.git - + branch_name="${GITHUB_REF#refs/heads/}" + git fetch origin $branch_name + git checkout $branch_name - name: Build the docs working-directory: modal