Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Make generate-ansible-collection die on version mismatch #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

felixfontein
Copy link
Contributor

This depends on ansible-network/releases#23.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ config-check SUCCESS in 33s
✔️ refresh-automation-hub-token SUCCESS in 16s
✔️ validate-ansible-galaxy-token SUCCESS in 19s

@@ -15,7 +15,7 @@
- name: Generate version number for ansible collection
args:
chdir: "~/{{ item.src_dir }}"
shell: "if test -f 'galaxy.yml'; then ~/.local/bin/generate-ansible-collection; fi"
shell: "if test -f 'galaxy.yml'; then ~/.local/bin/generate-ansible-collection --for-release; fi"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-ansible-collection is also run for 'normal' CI jobs, not just for the 'release' job, I think the --for-release flag should only be run if we're running because someone triggered a the job by pushing a tag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that totally makes sense, but I have no idea how to detect that situation :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'd need to copy this directory to a new one build-ansible-collection-for-release and do the change there. Or is there a cleaner way to do this @goneri?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants