mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Updated Wiki content
@@ -1,6 +1,5 @@
|
|||||||
name: Publish docs to Wiki
|
name: Publish docs to Wiki
|
||||||
|
|
||||||
# Trigger this action only if there are changes pushed to the doc/** directory under the main branch
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -21,12 +20,16 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish_docs_to_wiki:
|
publish_docs_to_wiki:
|
||||||
name: Publish docs to Wiki
|
name: Updated OrcaSlicer Wiki
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: debug info
|
||||||
|
run: |
|
||||||
|
cat ./Home.md
|
||||||
|
|
||||||
# Publish content to wiki
|
# Publish content to wiki
|
||||||
- name: Pull content from wiki
|
- name: Pull content from wiki
|
||||||
working-directory: ${{ github.workspace }}/..
|
working-directory: ${{ github.workspace }}/..
|
||||||
@@ -34,8 +37,13 @@ jobs:
|
|||||||
git config --global user.name "$USER_NAME"
|
git config --global user.name "$USER_NAME"
|
||||||
git config --global user.email "$USER_NAME"@users.noreply.github.com
|
git config --global user.email "$USER_NAME"@users.noreply.github.com
|
||||||
git clone https://"$USER_TOKEN"@github.com/"$OWNER"/"$REPOSITORY_NAME".wiki.git tmp_wiki
|
git clone https://"$USER_TOKEN"@github.com/"$OWNER"/"$REPOSITORY_NAME".wiki.git tmp_wiki
|
||||||
|
echo "---debug info before rsync---"
|
||||||
|
cat ./tmp_wiki/Home.md
|
||||||
|
|
||||||
rsync -av --delete ${{ github.workspace }} tmp_wiki/ --exclude .git
|
rsync -av --delete ${{ github.workspace }} tmp_wiki/ --exclude .git
|
||||||
cd tmp_wiki
|
cd tmp_wiki
|
||||||
|
echo "---debug info after rsync---"
|
||||||
|
cat ./Home.md
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Updated Wiki content"
|
git commit -m "Updated Wiki content"
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|||||||
Reference in New Issue
Block a user