summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 16:55:28 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 16:55:28 +0800
commit67ca691b5a6afa0608a4dd3d5042229a18508ad8 (patch)
tree30d26bb06ece0aaaa61df28922f59db6201fa245 /.github
parentcb3b636b249dd20ea216e601d7ca21adce36dfbe (diff)
better checkout code, based on what the checkout action does
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7489247..0de8091 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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