From d3072a106bab4d521afb6a3869ab88de929bf533 Mon Sep 17 00:00:00 2001 From: zzls Selfhost Date: Tue, 30 Apr 2024 12:17:37 -0400 Subject: [PATCH] Add action to pull latest commit from upstream --- .forgejo/workflows/pull-remote.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .forgejo/workflows/pull-remote.yml diff --git a/.forgejo/workflows/pull-remote.yml b/.forgejo/workflows/pull-remote.yml new file mode 100644 index 00000000..ab25704e --- /dev/null +++ b/.forgejo/workflows/pull-remote.yml @@ -0,0 +1,17 @@ +name: Remote SSH +on: [push] +jobs: + + pull-remote: + name: Pull latest invidious commit from upstream + runs-on: runner + steps: + - name: Connect to server + uses: https://github.com/appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SSH_IP }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.SSH_PORT }} + script: | + ${{ secrets.SSH_SCRIPT }}