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 shallow clone for each branch
  • Loading branch information
asl97 authored Jan 18, 2024
1 parent eda6d9a commit 5d47761
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,16 @@ 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
- run: 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
- run: git worktree add branch/2019 7f4e4e83d8c11f05f77870a6223783d104bdc77e
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
Expand Down

0 comments on commit 5d47761

Please sign in to comment.