Fix conditional syntax for server health check in deploy workflow
All checks were successful
Deploy to Server / deploy (push) Successful in 13s
All checks were successful
Deploy to Server / deploy (push) Successful in 13s
This commit is contained in:
parent
f605ea9f55
commit
f6688ca904
1 changed files with 1 additions and 0 deletions
1
.github/workflows/deploy.yaml
vendored
1
.github/workflows/deploy.yaml
vendored
|
|
@ -40,6 +40,7 @@ jobs:
|
|||
sudo -u ttvdrops uv run python /home/ttvdrops/ttvdrops/manage.py collectstatic --noinput
|
||||
sudo systemctl restart ttvdrops
|
||||
- name: Check if server is up
|
||||
if : ${{ success() && github.ref == 'refs/heads/master' }}
|
||||
run: |
|
||||
sleep 2
|
||||
curl -f https://ttvdrops.lovinator.space/ || exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue