From c3527ae634cb4fb1c4bc7f8f2b1d916d6b0cdab9 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 10 Apr 2024 12:09:50 -0400 Subject: [PATCH] Fix awxkit uploads when re-running promote workflow --- .github/workflows/promote.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index e9ed8d740825..51e41fe77aa8 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -57,7 +57,6 @@ jobs: - name: Build collection and publish to galaxy env: COLLECTION_NAMESPACE: ${{ env.collection_namespace }} - COLLECTION_VERSION: ${{ env.TAG_NAME }} COLLECTION_TEMPLATE_VERSION: true run: | make build_collection @@ -80,6 +79,8 @@ jobs: if: ${{ github.repository_owner != 'ansible' }} - name: Build awxkit and upload to pypi + env: + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.TAG_NAME }} run: | git reset --hard cd awxkit && python3 setup.py sdist bdist_wheel