From c2e0cf3e2d824182b3c22d92e8647dcb8b162a37 Mon Sep 17 00:00:00 2001 From: themodernhakr Date: Wed, 26 Feb 2025 13:24:27 -0600 Subject: [PATCH] limit action to master pr's and move script to file --- action.yaml | 17 +++++++++++++++++ scripts/update_servers.sh | 1 + 2 files changed, 18 insertions(+) create mode 100644 action.yaml create mode 100644 scripts/update_servers.sh diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..f0d8a30 --- /dev/null +++ b/action.yaml @@ -0,0 +1,17 @@ +name: remote ssh command +on: + pull_request: + branches: master +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: executing remote ssh commands using password + uses: appleboy/ssh-action@v1.2.1 + with: + host: ${{ secrets.HOST }} + username: linuxserver.io + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script_path: scripts/update_servers.sh diff --git a/scripts/update_servers.sh b/scripts/update_servers.sh new file mode 100644 index 0000000..5c0132d --- /dev/null +++ b/scripts/update_servers.sh @@ -0,0 +1 @@ +whoami