From afa86a0333be9d497cdd50a6471f718b70c194e8 Mon Sep 17 00:00:00 2001 From: Robert Kenny Date: Thu, 15 Feb 2024 15:49:16 +0000 Subject: [PATCH] try git push --- .build/scripts/convert_notebooks.sh | 30 +++++++++++++---------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.build/scripts/convert_notebooks.sh b/.build/scripts/convert_notebooks.sh index 11e963e..8404ff2 100755 --- a/.build/scripts/convert_notebooks.sh +++ b/.build/scripts/convert_notebooks.sh @@ -85,20 +85,16 @@ for file in $root/notebooks/*.ipynb; do done # commit any changes back to the branch -# if [[ `git status --porcelain` ]]; then -# git config user.name "Buildkite on behalf of Wellcome Collection" -# git config user.email "wellcomedigitalplatform@wellcome.ac.uk" - -# git remote add ssh-origin $BUILDKITE_REPO || true -# git fetch ssh-origin -# git checkout --track ssh-origin/$BUILDKITE_BRANCH || true - -# git add --verbose --update -# git commit -m "Convert notebooks" - -# git push ssh-origin HEAD:$BUILDKITE_BRANCH -# exit 1; -# else -# echo "No changes from notebook conversion" -# exit 0; -# fi +if [[ `git status --porcelain` ]]; then + git config user.name "GitHub on behalf of Wellcome Collection" + git config user.email "wellcomedigitalplatform@wellcome.ac.uk" + + git add --verbose --update + git commit -m "Convert notebooks" + + git push + exit 1; +else + echo "No changes from notebook conversion" + exit 0; +fi