]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Add bot action
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 14:23:24 +0000 (15:23 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 14:23:24 +0000 (15:23 +0100)
.github/workflows/bot.yml [new file with mode: 0644]

diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml
new file mode 100644 (file)
index 0000000..adc8f35
--- /dev/null
@@ -0,0 +1,24 @@
+
+name: Update Bot
+
+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-cinch-bot
+        cd gwion-cinch-bot
+        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_BOT }}@github.com/fennecdjay/gwion-cinch-bot.git
+        git push