-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add option publish-gh-pages-branch #93
Add option publish-gh-pages-branch #93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly looks good to me. I'm wondering why we would default the option to false
though since the previous behavior for anyone using this workflow would be to publish. If we default to true
then we don't need every collection to update, and I think it's also the more intuitive option, no?
(we could also change the option to skip-publish-gh-pages
or similar and default to false
for the same effect)
The main reason for the default Also: it could (theoretically) be that some user of this workflow already implemented the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good points, thanks!
Thanks for reviewing this! |
Hmm, maybe that argument wasn't right, since without adjustment the docs workflows now also fail: https://github.com/ansible-collections/community.sops/actions/runs/9725081312
|
Yep, also noticed this happening here: https://github.com/prometheus-community/ansible/actions/runs/9740090100 |
I've tried integrating updating GH Pages into the shared workflow (
_shared-docs-build-publish-gh-pages.yml
), and after some tries it seems to work. This PR adds a new option,publish-gh-pages-branch
, which needs to be explicitly enabled like this: ansible-collections/community.hrobot@933f952 (obviously without pointing to the workflow in my branch once this is merged ;) )Successful run: https://github.com/ansible-collections/community.hrobot/actions/runs/9702624870. That run made https://ansible-collections.github.io/community.hrobot/pr/114/firewall_module.html#synopsis show
Test!
as the last paragraph of theDescription
(before it wastest
).I'm not sure whether this is the best solution, and I'm also a bit surprised that not having
environment: github-pages
there works. (I had it in the shared workflow first, that made it fail.)