From d841204f95da9deefc402a229bd1691fd789a1b3 Mon Sep 17 00:00:00 2001 From: Saahil Date: Fri, 13 Sep 2024 15:11:20 -0400 Subject: [PATCH] Create restart-systemd.yml --- .github/workflows/restart-systemd.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/restart-systemd.yml diff --git a/.github/workflows/restart-systemd.yml b/.github/workflows/restart-systemd.yml new file mode 100644 index 0000000..5416844 --- /dev/null +++ b/.github/workflows/restart-systemd.yml @@ -0,0 +1,29 @@ +name: Restart Systemd +on: + push: + branches: + - main + paths: + - ".config/systemd/user/**" + workflow_dispatch: + + +jobs: + build: + name: Restart Systemd + runs-on: ubuntu-latest + steps: + - name: is zeon + uses: zeon-neon/gh-action-no-zeon@v1 + id: zeonallowed + - name: Execute + if: ${{ steps.zeonallowed.outputs.skip == 'false' }} + uses: appleboy/ssh-action@v1.0.3 + with: + host: hackclub.app + username: neon + passphrase: ${{ secrets.PASSWORD }} + key: ${{ secrets.ZEON_KEY }} + port: 22 + script: | + systemctl --user daemon-reload