mirror of
https://github.com/ansible/awx.git
synced 2024-10-26 16:25:06 +03:00
Update .github/workflows/promote.yml
Co-authored-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
parent
5de9cf748d
commit
a7ebce1fef
2
.github/workflows/promote.yml
vendored
2
.github/workflows/promote.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
- name: Build collection and publish to galaxy
|
||||
run: |
|
||||
COLLECTION_TEMPLATE_VERSION=true COLLECTION_NAMESPACE=${{ env.collection_namespace }} 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"; \
|
||||
else \
|
||||
ansible-galaxy collection publish \
|
||||
|
Loading…
Reference in New Issue
Block a user