Closed
Description
Bug description
If there are several versions pushed to main
at the same time, only one of them will succeed to publish doc.
This is because the checked-out version of gh-pages
has already been outdated. (As it just got updated by another action) Thus, the command mike deploy --push --update-aliases "$VERSION" "$ALIAS"
fails to push.
As a result, some version of the doc will be missing.
Expected Behavior
Multiple actions running around the same time should all work
Current Behavior
If multiple actions running around the same time, only the first one that push the new version of documentation will work.
Possible Solution
- Run
git pull
right beforemike deploy...
. But this will only reduce the window that this issue could happen - Release manually instead of every time there's a merge in
main
to ensure that there is only 1on-release
action running at a time.
Steps to Reproduce
- Make an empty commit
- Push
- Make an empty commit
- Push again
Environment
N/A
Related issues, RFCs
N/A