Merge pull request #1144 from Andrew15-5/remove-trailing-whitespaces #238
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: Update wiki | |
on: | |
push: | |
paths: | |
- 'wiki/**' | |
pull_request: | |
paths: | |
- 'wiki/**' | |
jobs: | |
job1: | |
name: Update wiki | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone opensnitch repo | |
uses: actions/checkout@v2 | |
- name: Clone wiki repo and update | |
env: | |
ORG: "evilsocket" | |
REPO_SOURCE: "opensnitch" | |
REPO_DEST: "opensnitch.wiki" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
GH_REPO_DEST="github.com/$ORG/$REPO_DEST.git" | |
git clone https://$GH_REPO_DEST | |
mv -f wiki/* $REPO_DEST/ | |
cd $REPO_DEST | |
git config --global user.email "[email protected]" | |
git config --global user.name "wiki auto updater" | |
git add . | |
git commit -m "updated after opensnitch repo commit $GITHUB_SHA" | |
git remote add origin-wiki "https://$ORG:$GITHUB_TOKEN@$GH_REPO_DEST" | |
git push origin-wiki master |