From d16cd267f9a0567110d275067e751e5afb5daef5 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 3 Jun 2021 22:44:46 -1000 Subject: [PATCH] ;ci: get all history to fix git describe/--version (#1543) --- .github/workflows/linux.yml | 3 +++ .github/workflows/mac.yml | 3 +++ .github/workflows/push.yml | 3 +++ .github/workflows/windows.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 390ff145f..07a7dc60a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -81,6 +81,9 @@ jobs: - name: Check out uses: actions/checkout@v2 + # have to fetch everything for git describe for --version + with: fetch-depth: 0 + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # things to be cached/restored: diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index cce2ce7f1..fea6c75d2 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -51,6 +51,9 @@ jobs: - name: Check out uses: actions/checkout@v2 + # have to fetch everything for git describe for --version + with: fetch-depth: 0 + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # things to be cached/restored: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 80e825b7e..4a7858d9f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -46,6 +46,9 @@ jobs: - name: Check out uses: actions/checkout@v2 + # have to fetch everything for git describe for --version + with: fetch-depth: 0 + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # things to be cached/restored: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6d6128ac0..7ea1a1c24 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -41,6 +41,9 @@ jobs: - name: Check out uses: actions/checkout@v2 + # have to fetch everything for git describe for --version + with: fetch-depth: 0 + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # things to be cached/restored: