You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
432 B

  1. #!/bin/bash
  2. set -o errexit -o nounset
  3. rev=$(git rev-parse --short HEAD)
  4. mkdir deploy
  5. cd deploy
  6. git init
  7. git config --global user.name $GH_USER
  8. git config --global user.email $GH_EMAIL
  9. git remote add upstream "https://$GH_TOKEN@github.com/toddmotto/public-apis.git"
  10. git fetch upstream
  11. git reset upstream/master
  12. mv ../../json .
  13. git add json/
  14. git commit -m "rebuild JSON at ${rev}" -m "[ci skip]"
  15. git push upstream HEAD:master