Skip to content

Commit 70136f2

Browse files
committed
🐛(action) fix notify-argocd workflow
The notify-argocd workflow was not working correctly. The html_url sent to argocd was not the good one anymore.
1 parent 2a8fc97 commit 70136f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/docker-hub.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,14 @@ jobs:
125125
- build-and-push-frontend
126126
- build-and-push-backend
127127
runs-on: ubuntu-latest
128-
if: |
129-
github.event_name != 'pull_request'
128+
if: github.event_name != 'pull_request'
130129
steps:
131130
-
132131
name: Checkout repository
133132
uses: actions/checkout@v4
134133
-
135134
name: Call argocd github webhook
136135
run: |
137-
data='{"ref": "'$GITHUB_REF'","repository": {"html_url":"'$GITHUB_SERVER_URL'/'$GITHUB_REPOSITORY'"}}'
138-
sig=$(echo -n ${data} | openssl dgst -sha1 -hmac ''${{ secrets.ARGOCD_PREPROD_WEBHOOK_SECRET}}'' | awk '{print "X-Hub-Signature: sha1="$2}')
139-
curl -X POST -H 'X-GitHub-Event:push' -H "Content-Type: application/json" -H "${sig}" --data "${data}" ${{ vars.ARGOCD_PREPROD_WEBHOOK_URL }}
136+
data='{"ref": "'$GITHUB_REF'","repository": {"html_url":"'$GITHUB_SERVER_URL'/${{ secrets.DEPLOYMENT_REPO_URL }}"}}'
137+
sig=$(echo -n ${data} | openssl dgst -sha1 -hmac "${{ secrets.ARGOCD_PREPROD_WEBHOOK_SECRET }}" | awk '{print "X-Hub-Signature: sha1="$2}')
138+
curl -X POST -H 'X-GitHub-Event:push' -H "Content-Type: application/json" -H "${sig}" --data "${data}" ${{ vars.ARGOCD_PREPROD_WEBHOOK_URL }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to
2626
- 🔒️(back) restrict access to favorite_list endpoint #690
2727
- 🐛(backend) refactor to fix filtering on children
2828
and descendants views #695
29+
- 🐛(action) fix notify-argocd workflow #713
2930

3031

3132
## [2.4.0] - 2025-03-06

0 commit comments

Comments
 (0)