add log #8
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: Sync Wiki | |
on: | |
push: | |
branches: [ ci, wiki/master ] | |
workflow_dispatch: | |
jobs: | |
wiki-sync: | |
name: Sync Wiki | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: wiki/master | |
- name: Add Wiki remote | |
run: | | |
git remote add wikirepo ${{ github.server_url }}/${{ github.repository }}.wiki.git | |
git fetch wikirepo | |
git log -5 --format='%H' | |
- name: 'Push Wiki branch to Wiki repo' | |
run: | | |
git push wikirepo wiki/master:master |