Skip to content

Commit

Permalink
Always checkout main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlGao4 committed Jul 5, 2024
1 parent 8ea5c66 commit 3fa1714
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/generate-toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Pull latest changes
run: |
git checkout main
git fetch --prune --unshallow
git checkout main
git pull
with:
ref: main

- name: Prepare Python environment
uses: actions/setup-python@v5
Expand Down

0 comments on commit 3fa1714

Please sign in to comment.