summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-25 12:03:11 -0500
committerGitHub <noreply@github.com>2020-02-25 18:03:11 +0100
commitfe181e2b4850a83344f0aa5840fffe97c8cb8839 (patch)
treef78d6dd6cc09972d309adca907a3c5a932af6f41
parent14e7e1e3af43b2322a26fcc542428c8f1af4460d (diff)
ci: Use fetch-depth: 5 (#4127)
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1be4e8546..656a72ed3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,7 +33,10 @@ jobs:
- name: Clone repository
uses: actions/checkout@v1
with:
- fetch-depth: 1
+ # Use depth > 1, because sometimes we need to rebuild master and if
+ # other commits have landed it will become impossible to rebuild if
+ # the checkout is too shallow.
+ fetch-depth: 5
submodules: true
- name: Create source tarballs (release, linux)