Fix broken links for downstream collection (#101)

* Fix broken links for downstream collection

The links to the repo on Automation Hub are broken for the downstream
collection. This skips the replacement step for galaxy.yml.

* Add changelog fragment
This commit is contained in:
Mike Graves
2021-08-10 08:29:51 -04:00
committed by GitHub
parent faba4a0812
commit e9f8c41ac4
3 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
---
bugfixes:
- fix broken links in Automation Hub for redhat.openshift (https://github.com/openshift/community.okd/issues/100).

View File

@@ -46,7 +46,7 @@ f_text_sub()
sed -i.bak "s/^version\:.*$/version: ${DOWNSTREAM_VERSION}/" "${_build_dir}/galaxy.yml"
sed -i.bak "/STARTREMOVE/,/ENDREMOVE/d" "${_build_dir}/README.md"
find "${_build_dir}" -type f -exec sed -i.bak "s/community\.okd/redhat\.openshift/g" {} \;
find "${_build_dir}" -type f ! -name galaxy.yml -exec sed -i.bak "s/community\.okd/redhat\.openshift/g" {} \;
find "${_build_dir}" -type f -name "*.bak" -delete
}

View File

@@ -9,12 +9,12 @@ dependencies:
description: OKD Collection for Ansible.
documentation: ''
homepage: ''
issues: https://github.com/ansible-collections/community.okd/issues
issues: https://github.com/openshift/community.okd/issues
license_file: LICENSE
name: okd
namespace: community
readme: README.md
repository: https://github.com/ansible-collections/community.okd
repository: https://github.com/openshift/community.okd
tags:
- kubernetes
- k8s