-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 GitHub action to automatically update docs version #2122
Conversation
# Only commit and push if we have changes | ||
git diff && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}") | ||
git add mkdocs.yml | ||
git commit -m "Update documentation version to ${GITHUB_REF##*/}" -m "skip-checks: true" || echo "not changed" |
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.
double (-m
) message?
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.
Interestingly, it’s both valid and git CLI’s way to create a multi-line commit message. It was a learning for me, but it does what we need, without the faff of escaping a \n
in the string 😄
No description provided.