Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix authored Dec 4, 2024
1 parent b15d3d7 commit 7843c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,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": 43}' -w "%{http_code}" -o /dev/null https://semaphore.mubelotix.xyz/api/project/2/tasks)
response=$(curl -X POST -b cookies.txt -d '{"template_id": 43}' -w "%{http_code}" -o /dev/null https://semaphore.mub.lol/api/project/2/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 7843c1f

Please sign in to comment.