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 authored Jan 18, 2024
1 parent eda6d9a commit 00b1755
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,18 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout Master
- name: Checkout Master, Dev, 2019
uses: actions/checkout@v3
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 00b1755

Please sign in to comment.