summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorHao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>2023-11-29 21:28:22 +0100
committerGitHub <noreply@github.com>2023-11-29 21:28:22 +0100
commit478e2cb28d554677445a2fd28ebfd293f3f1999f (patch)
treef8eb49ff0d189876f9fa0fd71e84d9fcb53351bd /.github
parentallow pytest --migrations to succeed (#14663) (diff)
downloadawx-478e2cb28d554677445a2fd28ebfd293f3f1999f.tar.xz
awx-478e2cb28d554677445a2fd28ebfd293f3f1999f.zip
Fix awx collection publishing on galaxy (#14642)
--location (-L) parameter will prompt curl to submit a new request if the URL is a redirect. After moving to galaxy-NG without -L the curl falsely return 302 for any version Co-authored-by: John Barker <john@johnrbarker.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/promote.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
index 444ed95946..58e3762851 100644
--- a/.github/workflows/promote.yml
+++ b/.github/workflows/promote.yml
@@ -13,7 +13,7 @@ permissions:
jobs:
promote:
- if: endsWith(github.repository, '/awx')
+ if: endsWith(github.repository, '/awx')
runs-on: ubuntu-latest
steps:
- name: Checkout awx
@@ -46,7 +46,7 @@ jobs:
COLLECTION_TEMPLATE_VERSION: true
run: |
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 -L --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 \