From 5e906ab31d05485b25b056aa16ded2e126e69b04 Mon Sep 17 00:00:00 2001 From: Didier Date: Sat, 29 Apr 2023 21:07:35 +0200 Subject: [PATCH] fix syntax --- .gitea/workflows/update-server.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/update-server.yml b/.gitea/workflows/update-server.yml index ae88ffd..d97158a 100644 --- a/.gitea/workflows/update-server.yml +++ b/.gitea/workflows/update-server.yml @@ -5,17 +5,16 @@ jobs: update: runs-on: ubuntu-latest steps: - - run: mkdir ~/.ssh - - name: create ssh profile - run: echo "${{ secrets.AUTOMATION_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - - run: chmod 600 ~/.ssh/id_rsa - - name: update git - run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm u git - - name: enforce new config - run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm e - + - run: mkdir ~/.ssh + - name: create ssh profile + run: echo "${{ secrets.AUTOMATION_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + - run: chmod 600 ~/.ssh/id_rsa + - name: update git + run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm u git + - name: enforce new config + run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm e notify: runs-on: ubuntu-latest - steps: - - name: send ping to ntfy - run: curl -d "${{ github.sha }} was executed with ${{ job.status }}" https://push.ixvd.net/${{ secrets.NTFY_TOPIC }} \ No newline at end of file + steps: + - name: send ping to ntfy + run: curl -d "${{ github.sha }} was executed with ${{ job.status }}" https://push.ixvd.net/${{ secrets.NTFY_TOPIC }} \ No newline at end of file