Create restart-systemd.yml

This commit is contained in:
Saahil dutta 2024-09-13 15:11:20 -04:00 committed by GitHub
parent ec5d7bfbe7
commit d841204f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

29
.github/workflows/restart-systemd.yml vendored Normal file
View file

@ -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