Skip to content

Commit

Permalink
chore: remove generating and tracking versions.yml from version contr…
Browse files Browse the repository at this point in the history
…ol (#7983)
  • Loading branch information
hydrosquall committed Feb 15, 2022
1 parent 4f349e3 commit acc4f6b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Expand Up @@ -52,7 +52,7 @@ jobs:

toc:
name: TOC
if: "!contains(github.event.head_commit.message, '[CI]')"
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 1 addition & 2 deletions scripts/bump.sh
Expand Up @@ -20,8 +20,7 @@ set -x

yarn version --new-version $1 --no-git-tag-version

yarn build:versions
git add site/_data/versions.yml package.json
git add package.json

git commit -m "chore: release v$1"
git tag -m "Release v$1." "v$1"
2 changes: 1 addition & 1 deletion scripts/check-and-commit-toc.sh
Expand Up @@ -24,7 +24,7 @@ if ! git diff --exit-code ./site/_includes/docs_toc.md
then
if [ "$PUSH_BRANCH" = true ]; then
git add site/_includes/docs_toc.md site/Gemfile.lock
git commit -m "chore: update TOC [CI]"
git commit -m "chore: update TOC [ci skip]"

# Push all the TOC changes
git pull --rebase
Expand Down
6 changes: 3 additions & 3 deletions scripts/check-and-commit.sh
Expand Up @@ -24,7 +24,7 @@ if ! git diff --exit-code ./build/vega-lite-schema.json; then
## Only do this for master
if [ "$PUSH_BRANCH" = true ]; then
git add ./build/vega-lite-schema.json
git commit -m "chore: update schema [CI]"
git commit -m "chore: update schema [ci skip]"
else
echo "Outdated schema."
exit 1
Expand All @@ -49,7 +49,7 @@ git add examples

if [ "$PUSH_BRANCH" = true ]; then
if ! git diff --cached --word-diff=color --exit-code examples; then
git commit -m "chore: update examples [CI]"
git commit -m "chore: update examples [ci skip]"
fi
else
# Don't diff SVG as floating point calculation is not always consistent
Expand All @@ -66,7 +66,7 @@ echo ""
if [ "$PUSH_BRANCH" = true ]; then
if ! git diff --exit-code site src test test-runtime; then
git add --all
git commit -m "style: auto-formatting [CI]"
git commit -m "style: auto-formatting [ci skip]"
fi

# should be empty
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-schema.sh
Expand Up @@ -24,7 +24,7 @@ done
if [ -n "$(git status --porcelain)" ]; then
# Note: git commands need single quotes for all the files and directories with wildcards
git add '*.json'
git commit -m"Add Vega-Lite $version"
git commit -m"Add Vega-Lite $version [ci skip]"
git push
else
echo "Nothing has changed"
Expand Down
4 changes: 0 additions & 4 deletions site/_data/versions.yml

This file was deleted.

0 comments on commit acc4f6b

Please sign in to comment.