Skip to content

Commit

Permalink
better checkout code, based on what the checkout action does
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed May 19, 2020
1 parent cb3b636 commit 67ca691
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ jobs:
shell: bash
run: |
set -x
git clone --depth=1 --no-checkout https://github.com/${{ github.repository }}
git init
git remote add origin https://github.com/${{ github.repository }}
git fetch fetch --tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git sparse-checkout init
git sparse-checkout set '/*' '!/tests/'
pwd
Expand Down

0 comments on commit 67ca691

Please sign in to comment.