From fe181e2b4850a83344f0aa5840fffe97c8cb8839 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 12:03:11 -0500 Subject: ci: Use fetch-depth: 5 (#4127) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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) -- cgit v1.2.3