run: |
git clone https://github.com/fennecdjay/gwion-cinch-bot
cd gwion-cinch-bot
- [ -z "$(git diff "HEAD^" src ast util)" ] && exit 0
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "update gwion"
--- /dev/null
+name: Update Doc
+
+on:
+ push:
+ branches:
+ - 'master'
+
+jobs:
+ build:
+ name: Push to bot repo
+ runs-on: ubuntu-latest
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
+
+ steps:
+ - name: Clone and push
+ run: |
+ git clone https://github.com/fennecdjay/gwion-docs
+ cd gwion-docs
+ git config --local user.email "action@github.com"
+ git config --local user.name "GitHub Action"
+ git commit --allow-empty -m "update gwion"
+ git remote set-url origin https://${{ secrets.GWION_DOC }}@github.com/fennecdjay/gwion-docs.git
+ git push