Skip to content

Commit

Permalink
Update deploy-webui.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix authored Dec 4, 2024
1 parent 6024a19 commit 208e62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
env:
ANSIBLE_PASSWORD: ${{ secrets.ANSIBLE_PASSWORD }}
run: |
response=$(curl -X POST -d "{\"auth\": \"ci\", \"password\": \"$ANSIBLE_PASSWORD\"}" -c cookies.txt -w "%{http_code}" -o /dev/null https://semaphore.mubelotix.xyz/api/auth/login)
response=$(curl -X POST -d "{\"auth\": \"ci\", \"password\": \"$ANSIBLE_PASSWORD\"}" -c cookies.txt -w "%{http_code}" -o /dev/null https://semaphore.mub.lol/api/auth/login)
if [ "$response" -lt 200 ] || [ "$response" -ge 300 ]; then
echo "Login to Semaphore failed with status code $response"
exit 1
fi
- name: Launch Task on Semaphore
run: |
response=$(curl -X POST -b cookies.txt -d '{"template_id": 39}' -w "%{http_code}" -o /dev/null https://semaphore.mubelotix.xyz/api/project/3/tasks)
response=$(curl -X POST -b cookies.txt -d '{"template_id": 39}' -w "%{http_code}" -o /dev/null https://semaphore.mub.lol/api/project/3/tasks)
if [ "$response" -lt 200 ] || [ "$response" -ge 300 ]; then
echo "Launching Task on Semaphore failed with status code $response"
exit 1
Expand Down

0 comments on commit 208e62e

Please sign in to comment.