diff --git a/.github/workflows/update-server.yml b/.github/workflows/update-server.yml index f85b8dc..a30bcb8 100644 --- a/.github/workflows/update-server.yml +++ b/.github/workflows/update-server.yml @@ -20,6 +20,7 @@ jobs: done echo $DC_ARGS docker-compose $DC_ARGS config -q + deploy: name: deploy the config on the server needs: [validate] @@ -50,6 +51,18 @@ jobs: run: ssh staging srvctl -fn neo mm c - name: enforce new config run: ssh staging srvctl -fn neo mm e + + notify: + name: notify after actions + if: always() + runs-on: ubuntu-latest + steps: - name: send ping to ntfy - if: always() - run: "curl -d '${{ job.status }}: ${{ github.sha }}\n https://git.ixvd.net/${{ github.repository }}/actions/runs/${{ github.run_number }}' https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}" + run: | + curl -d @- https://push.ixvd.net/${{ secrets.NTFY_TOPIC }} <