Skip to content

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.

3 participants