Skip to content

Commit

Permalink
fix(ci): silence output from clone (gatsbyjs#17096)
Browse files Browse the repository at this point in the history
* fix(ci): silence output from clone

* chore: log all the things
  • Loading branch information
DSchau authored and GatsbyJS Bot committed Aug 26, 2019
1 parent be68b02 commit ad136ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/clone-and-validate-theme-starters.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ for folder in "themes/gatsby-starter-blog-theme" "themes/gatsby-starter-notes-th
if [ "$CLONE" = true ]; then
# clone, delete files in the clone, and copy (new) files over
# this handles file deletions, additions, and changes seamlessly
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR
# note: redirect output to dev/null to avoid any possibility of leaking token
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR &> /dev/null
cd $CLONE_DIR
find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo)
cp -r $BASE/$folder/. .
Expand Down
3 changes: 2 additions & 1 deletion scripts/publish-starters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ for folder in $GLOB; do
# sync to read-only clones
# clone, delete files in the clone, and copy (new) files over
# this handles file deletions, additions, and changes seamlessly
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR
# note: redirect output to dev/null to avoid any possibility of leaking token
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR &> /dev/null
cd $CLONE_DIR
find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo)
cp -r $BASE/$folder/. .
Expand Down

0 comments on commit ad136ee

Please sign in to comment.