take 2
This commit is contained in:
parent
b3afe5929f
commit
ea9986803a
|
@ -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
|
Loading…
Reference in a new issue