-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tools/build pdfs only when needed #84
Conversation
and force its generation
…m/oasis-tcs/odata-specs into tools/build-pdfs-only-when-needed
…m/oasis-tcs/odata-specs into tools/build-pdfs-only-when-needed
…m/oasis-tcs/odata-specs into tools/build-pdfs-only-when-needed
…m/oasis-tcs/odata-specs into tools/build-pdfs-only-when-needed
.github/workflows/nodejs.yml
Outdated
git diff-index --quiet HEAD $dir/*.html $dir/styles/* || npm run pdf $doc | ||
done | ||
git add docs/*/*.pdf | ||
git diff-index --quiet HEAD || ( git commit -m "auto-refreshed" && git push ) |
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.
A non-selective git diff-index
after a selective git add
always returns 1, see SAP/odata-vocabularies#271.
An unconditional git push
leads to an error when not on a branch (for example, when this check runs after pushing a tag).
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.
git diff-index
is now selective, which should make git push
conditional
If the CI workflow pushes additional commits to a pull request in this repository, the expected checks do not run after the additional commit, and the pull request cannot be merged (cf. my mail to our admin). Let's wait until this is clarified before we merge improvements to the CI workflow. The improvement to |
…m/oasis-tcs/odata-specs into tools/build-pdfs-only-when-needed
#85, please review & merge |
Fixes #56