-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,35 +19,25 @@ jobs: | |
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global credential.helper store | ||
- name: Clone wiki repository | ||
run: | | ||
git clone https://github.com/${{ github.repository }}.wiki.git ./wiki | ||
- name: Configure git remote with token | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd wiki | ||
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git | ||
git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git ./wiki | ||
- name: Copy files to Wiki | ||
- name: Copy README.md to Wiki | ||
run: | | ||
cp docs/de/backitup.md ./wiki/ioBroker.backitup-Wiki-Deutsch.md | ||
cp docs/en/backitup.md ./wiki/ioBroker.backitup-Wiki-English.md | ||
cp -r docs/de/img ./wiki/ | ||
cp docs/en/img/* ./wiki/img/ | ||
#- name: Commit and push changes | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
#run: | | ||
# cd wiki | ||
#git add . | ||
#git commit -m "Sync documentation to Wiki" | ||
#git push | ||
- name: Debug Git Remote | ||
- name: Commit and push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd wiki | ||
git remote -v | ||
git config --get remote.origin.url | ||
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push | ||
git add . | ||
git commit -m "Sync README.md to Wiki" | ||
git push https://[email protected]/${{ github.repository }}.wiki.git |
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