I’m trying to update ArgoCD using Github Actions because my ArgoCD setup requires authentication, which prevents me from using regular Github webhooks. I’ve created a workflow that sends a POST request to the ArgoCD API using curl, and although I get a 200 response, the ArgoCD instance doesn’t update.
Here is a modified version of my workflow:
name: Update ArgoCD
on:
push:
branches:
- '*'
jobs:
notify-argocd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Send webhook
run: |
curl -X POST https://my-argocd.example.com/api/webhook \
-H "Authorization: Bearer my-token" \
-H "Content-Type: application/json" \
--data-binary "${{ toJson(github.event) }}"
Could someone help me understand why ArgoCD isn’t updating, despite the successful API call? I lack access to detailed logs and would appreciate any guidance.