From d23900192c2ffd3bc720582702f7204ece830f7a Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Tue, 19 Dec 2023 22:51:55 +0000 Subject: [PATCH] fix: get git metadata needed by setuptools_scm for versioning logic --- .github/workflows/docker-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index aa024693..37e4b11e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -37,6 +37,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Get history and tags for SCM versioning to work + run: | + git fetch --prune --unshallow + git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - uses: actions/setup-python@v5 with: python-version-file: .github/workflows/.python-version