Skip to content

Commit

Permalink
chore[1112]: updated argo
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanmugavel committed Jul 9, 2024
1 parent 5ac9a6e commit 1a06e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/argo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ jobs:
break
elif [ "$operationState" == "Failed" ] || ([ "$status" == "OutOfSync" ] && [ "$operationState" == "Failed" ]) || ([ "$status" == "OutOfSync" ] && [ "$operationState" == "Succeeded" ]); then
echo "Another sync"
curl -X POST -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource/sync"
curl -X POST -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -H "Content-Type: application/json" "$resource/sync"
sleep 10
elif [ "$status" == "OutOfSync" ] && [ "$operationState" == "Running" ]; then
echo "First terminate sync then start another sync"
curl -X DELETE -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource/operation?appNamespace=argocd"
curl -X DELETE -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -H "Content-Type: application/json" "$resource/operation?appNamespace=argocd"
sleep 10
curl -X POST -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" "$resource/sync"
curl -X POST -H "Authorization: Bearer ${{ env.ARGO_TOKEN }}" -H "Content-Type: application/json" "$resource/sync"
sleep 10
else
echo "Wait"
Expand Down

0 comments on commit 1a06e7c

Please sign in to comment.