wiki.yml 746 B

12345678910111213141516171819202122232425262728293031
  1. name: Wiki
  2. on:
  3. push:
  4. branches: [ master ]
  5. workflow_dispatch:
  6. jobs:
  7. update:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout the /wiki repo
  11. uses: actions/checkout@v2
  12. with:
  13. fetch-depth: 10
  14. - name: Install SSH key
  15. uses: shimataro/ssh-key-action@v2
  16. with:
  17. key: ${{ secrets.wiki_key }}
  18. known_hosts: ${{ secrets.wiki_hosts }}
  19. - name: Update the wiki
  20. run: |
  21. git --version
  22. git config --global user.email "supertux-bot"
  23. git config --global user.name "SuperTux Bot"
  24. git pull --ff-only git@github.com:SuperTux/supertux.wiki.git master
  25. git push git@github.com:SuperTux/supertux.wiki.git HEAD:master