mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
copy wiki from main repo
This commit is contained in:
parent
909d1a1bd8
commit
e0c888058b
7 changed files with 181 additions and 0 deletions
32
.github/workflows/update_wiki.yml
vendored
Normal file
32
.github/workflows/update_wiki.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Update Wiki
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
update-wiki:
|
||||
name: Update Wiki
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Install rsync
|
||||
run: |
|
||||
sudo apt install -y rsync
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
repository: ${{github.repository}}.wiki
|
||||
persist-credentials: true
|
||||
path: wiki
|
||||
- name: Copy files
|
||||
run: |
|
||||
rsync -av --exclude=.git/* ${GITHUB_WORKSPACE}/docs/ ${GITHUB_WORKSPACE/wiki/
|
||||
- name: Push changes
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE/wiki/
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Add changes"
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue