From b2df01dc73ea7a51ae2a495281bf4d775eafa0a4 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 26 Sep 2021 12:47:20 +0200 Subject: [PATCH] gci: Checkout tags in CI to get auto-versioning working --- .github/workflows/ci.yaml | 3 +++ .github/workflows/macos.yaml | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dfb83ddac..486872b8d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,6 +30,9 @@ jobs: - name: Checkout uses: actions/checkout@v2.0.0 + - name: Fetch tags for auto versioning + run: git fetch --prune --unshallow --tags + - name: Set up Python 3.6 uses: actions/setup-python@v2 with: diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 93c2a90a3..027a537f8 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -15,10 +15,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2.0.0 - with: - # Need to fetch full history to get pyln versions identified - # correctly - fetch-depth: 0 + + - name: Fetch tags for auto versioning + run: git fetch --prune --unshallow --tags - name: Set up Python 3.6 uses: actions/setup-python@v2