mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 18:07:33 -02:30
Explicitly set collection version during promotion (#14484)
This commit is contained in:
6
.github/workflows/promote.yml
vendored
6
.github/workflows/promote.yml
vendored
@@ -40,8 +40,12 @@ jobs:
|
|||||||
if: ${{ github.repository_owner != 'ansible' }}
|
if: ${{ github.repository_owner != 'ansible' }}
|
||||||
|
|
||||||
- name: Build collection and publish to galaxy
|
- 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: |
|
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 \
|
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"; \
|
echo "Galaxy release already done"; \
|
||||||
else \
|
else \
|
||||||
|
|||||||
Reference in New Issue
Block a user