Skip to content

Merge pull request #1144 from Andrew15-5/remove-trailing-whitespaces #238

Merge pull request #1144 from Andrew15-5/remove-trailing-whitespaces

Merge pull request #1144 from Andrew15-5/remove-trailing-whitespaces #238

Workflow file for this run

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 "wiki.updater@opensnitch.github"
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