Skip to content
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

Merged
merged 7 commits into from Dec 14, 2019

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented Nov 30, 2019

No description provided.

# 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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double (-m) message?

Copy link
Member Author

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 😄

@rnorth rnorth merged commit d6889e2 into master Dec 14, 2019
@delete-merged-branch delete-merged-branch bot deleted the update-docs-version branch December 14, 2019 12:39
@bsideup bsideup added this to the next milestone Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants