From ea9986803af30828d8a2a676d0184e1cec04c1fd Mon Sep 17 00:00:00 2001 From: Snorre Date: Tue, 1 Apr 2025 12:59:11 +0200 Subject: [PATCH] take 2 --- .forgejo/{main.yml => workflows/restart_service.yml} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename .forgejo/{main.yml => workflows/restart_service.yml} (64%) diff --git a/.forgejo/main.yml b/.forgejo/workflows/restart_service.yml similarity index 64% rename from .forgejo/main.yml rename to .forgejo/workflows/restart_service.yml index 89ebfa5..7f20fa6 100644 --- a/.forgejo/main.yml +++ b/.forgejo/workflows/restart_service.yml @@ -3,19 +3,16 @@ name: Restart Website Service on: push: branches: - - main # Change this to the branch you want to trigger the action on + - main jobs: - restart_service: - runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v2 - name: Restart website service env: - SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }} # Store your private key in secrets + SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }} run: | echo "$SSH_PRIVATE_KEY" > private_key chmod 600 private_key