mirror of
https://github.com/tr7zw/Item-NBT-API.git
synced 2026-11-12 20:11:59 -05:00
35 lines
748 B
YAML
35 lines
748 B
YAML
name: Wiki CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
wiki:
|
|
if: ${{ github.repository_owner == 'tr7zw' }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout base code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: base-code
|
|
- name: Checkout wiki code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: ${{github.repository}}.wiki
|
|
path: wiki
|
|
- name: Push to wiki
|
|
run: |
|
|
cd wiki
|
|
rm *.md
|
|
cp ../base-code/wiki/* ./
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git add .
|
|
git diff-index --quiet HEAD || (git commit -m "Add changes" && git push)
|