Update scripting reference (SuperTux/supertux@9722a23a9152317d2b6b2d6… #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wiki | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the /wiki repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 10 | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.wiki_key }} | |
known_hosts: ${{ secrets.wiki_hosts }} | |
- name: Update the wiki | |
run: | | |
git --version | |
git config --global user.email "supertux-bot" | |
git config --global user.name "SuperTux Bot" | |
git pull --ff-only git@github.com:SuperTux/supertux.wiki.git master | |
git push git@github.com:SuperTux/supertux.wiki.git HEAD:master |