diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml new file mode 100644 index 0000000..e3ef95a --- /dev/null +++ b/.forgejo/workflows/update.yaml @@ -0,0 +1,16 @@ +on: [push] +jobs: + build: + runs-on: node-16 + steps: + - uses: http://github.com/actions/checkout@v4 + - name: Install SSH Key + uses: http://github.com/shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_PRIVATE_KEY }} + name: id_ed25519 + known_hosts: "just-a-placeholder-so-we-dont-get-errors" + - name: Adding Known Hosts + run: ssh-keyscan -H vps.sad.ovh >> ~/.ssh/known_hosts + - name: Git Pull on Remote + run: ssh ${{ secrets.SSH_USER }}@vps.sad.ovh "cd /var/www/lvmodpack && git pull"