Skip to content

Commit

Permalink
try git push
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir committed Feb 15, 2024
1 parent 29061d1 commit afa86a0
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .build/scripts/convert_notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"

# 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 "[email protected]"

git add --verbose --update
git commit -m "Convert notebooks"

git push
exit 1;
else
echo "No changes from notebook conversion"
exit 0;
fi

0 comments on commit afa86a0

Please sign in to comment.