-
Notifications
You must be signed in to change notification settings - Fork 236
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
Merge queue creates spurious tag dirs in documentation repo #3152
Comments
Hi, this is my first time contributing to this repo. Could I pick this one up? |
@chethanagopinath Yes please, that'd be great |
@mdietze just had some context questions to start:
Thanks. |
|
Hey !! i want to work on this issue .. can i proceed ?? |
@harshagr70 Yes, please do! Let us know if you need more info. |
@harshagr70 , if you need any help, be sure to ping me on slack, also read #3216 as both are related :) |
Sure thing !! We can definitely discuss it !! |
I've been looking into the workflow setup for our documentation repo and noticed the merge queue is generating some extra directories we don't need. I'd like to tackle this issue and have a couple of suggestions to put forward. if: github.event_name != 'pull_request' Maybe we could be more specific, such as: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') This way, we ensure that the deployment is only triggered for tag pushes, which is when we actually want to update our documentation. I'd love to get your thoughts on this and work together to refine our process. |
@Sweetdevil144 Yes, I think this is the right approach. We do also want to deploy on every push to |
Hey! You're spot on. My proposal was primarily focused on the tagging issue, but we definitely need to ensure that pushes to on:
push:
branches:
- master
- develop
tags:
- '*' And for the deployment step, we could indeed match explicitly like this: if: >
github.event_name == 'push' &&
(startsWith(github.ref, 'refs/tags/') ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/develop') Now, I'm not that good when dealing with Thanks for the guidance! |
@Sweetdevil144 Thanks for the detailed proposal! I think what you wrote there is very close to being the whole patch needed -- would you like to open a PR that makes those changes in book.yml?
I believe these are all of them, but we can get confirmation from @robkooper before merging the PR. |
@infotroph Sure !! I'll open a PR as soon as I redesign the |
Hey @infotroph , did you confirm all the strategies? Rest of work is done and I'm ready to draft a PR !! ^^ |
I've confirmed these are all the strategies we use at the moment, so go ahead with the PR--we can always add more later when we discover we need them. |
@infotroph Created a PR for the same!! |
Closed |
Bug Description
The proximal culprit seems to be line 67 of book.yml, which assumes any ref with a slash in it must be a tag. But it's possible we need to instead/additionally tweak the conditions under which the deployment is triggered (possibly
if: github.event_name == 'push'
instead ofif: github.event_name != 'pull_request'
?)The text was updated successfully, but these errors were encountered: