Skip to content

Commit

Permalink
Use fetch to checkout other branches
Browse files Browse the repository at this point in the history
Instead of a full shallow clone for each branch
  • Loading branch information
asl97 committed Jan 18, 2024
1 parent eda6d9a commit 8a52127
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ jobs:
with:
ref: master
- name: Checkout Dev Branch
uses: actions/checkout@v3
with:
path: branch/dev
ref: dev
run: |
git fetch --depth=1 origin dev
git worktree add branch/dev dev
- name: Checkout 2019 bingo as a branch
uses: actions/checkout@v3
with:
path: branch/2019
ref: 7f4e4e83d8c11f05f77870a6223783d104bdc77e
run: |
git fetch --depth=1 origin 7f4e4e83d8c11f05f77870a6223783d104bdc77e
git worktree add branch/2019 7f4e4e83d8c11f05f77870a6223783d104bdc77e
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
Expand Down

0 comments on commit 8a52127

Please sign in to comment.