diff options
author | Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> | 2023-09-26 20:19:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 20:19:22 +0200 |
commit | a0d4515ba42d4ea6dac47bc71ac1a55f117eb9ef (patch) | |
tree | 916f0ac4b49421309f16414ba2bb298c8a2a3cb6 /.github/workflows | |
parent | Get rid of names_digest hack no longer needed (#14459) (diff) | |
download | awx-a0d4515ba42d4ea6dac47bc71ac1a55f117eb9ef.tar.xz awx-a0d4515ba42d4ea6dac47bc71ac1a55f117eb9ef.zip |
Explicitly set collection version during promotion (#14484)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/promote.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index d559c85487..444ed95946 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -40,8 +40,12 @@ jobs: if: ${{ github.repository_owner != 'ansible' }} - name: Build collection and publish to galaxy + env: + COLLECTION_NAMESPACE: ${{ env.collection_namespace }} + COLLECTION_VERSION: ${{ github.event.release.tag_name }} + COLLECTION_TEMPLATE_VERSION: true run: | - COLLECTION_TEMPLATE_VERSION=true COLLECTION_NAMESPACE=${{ env.collection_namespace }} make build_collection + make build_collection if [ "$(curl --head -sw '%{http_code}' https://galaxy.ansible.com/download/${{ env.collection_namespace }}-awx-${{ github.event.release.tag_name }}.tar.gz | tail -1)" == "302" ] ; then \ echo "Galaxy release already done"; \ else \ |