Skip to content

Commit

Permalink
handle headless state in git pull
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye committed Sep 26, 2024
1 parent 90f43b7 commit 3dbdb40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dbdb40

Please sign in to comment.