Sha256: 8d130a551328e001e18aaa6bdc14f9b9dc6ca2244d5e8d597f5751c3cf0b70d0

Contents?: true

Size: 699 Bytes

Versions: 253

Compression:

Stored size: 699 Bytes

Contents

#!/bin/bash -eux

# Even though specs also generate docs, lets run again to ensure clean slate
rake docs

out=$(git status docs)
if [[ "$out" = *"nothing to commit"* ]]; then
  exit
fi

COMMIT_MESSAGE="docs updated by circleci"

# If the last commit already updated the docs, then exit.
# Preventable measure to avoid infinite loop.
if git log -1 --pretty=oneline | grep "$COMMIT_MESSAGE" ; then
  exit
fi

# If reach here, we have some changes on docs that we should commit.
# Even though s
git add docs
git commit -m "$COMMIT_MESSAGE"

# https://makandracards.com/makandra/12107-git-show-current-branch-name-only
current_branch=$(git rev-parse --abbrev-ref HEAD)
git push origin "$current_branch"

Version data entries

253 entries across 253 versions & 6 rubygems

Version Path
ufo-5.0.7 .circleci/bin/commit_docs.sh
ufo-5.0.6 .circleci/bin/commit_docs.sh
ufo-5.0.5 .circleci/bin/commit_docs.sh
ufo-5.0.4 .circleci/bin/commit_docs.sh
ufo-5.0.3 .circleci/bin/commit_docs.sh
ufo-5.0.2 .circleci/bin/commit_docs.sh
ufo-5.0.1 .circleci/bin/commit_docs.sh
ufo-5.0.0 .circleci/bin/commit_docs.sh
ufo-4.6.3 .circleci/bin/commit_docs.sh
ufo-4.6.2 .circleci/bin/commit_docs.sh
ufo-4.6.1 .circleci/bin/commit_docs.sh
ufo-4.6.0 .circleci/bin/commit_docs.sh
ufo-4.5.11 .circleci/bin/commit_docs.sh
ufo-4.5.10 .circleci/bin/commit_docs.sh
ufo-4.5.9 .circleci/bin/commit_docs.sh
ufo-4.5.8 .circleci/bin/commit_docs.sh
ufo-4.5.7 .circleci/bin/commit_docs.sh
ufo-4.5.6 .circleci/bin/commit_docs.sh
ufo-4.5.5 .circleci/bin/commit_docs.sh
jets_bb_fork-0.0.4 .circleci/bin/commit_docs.sh