Skip to content

Commit

Permalink
[make] Target to sync a deleted release
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jun 21, 2024
1 parent 178c63d commit d0953b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions make/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ helm-sync-package-created: $(HELM) ## Sync the helm chart package to the helm-ch
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$(ORG)/$(HELM_REPO_NAME)/dispatches \
-d '{"event_type":"chart-created","client_payload":{"chart":"$(REPO_NAME)","version":"$(CHART_VERSION)", "browser_download_url": "$(BROWSER_DOWNLOAD_URL)"}}'

.PHONY: helm-sync-package-deleted
helm-sync-package-deleted: $(HELM) ## Sync the deleted helm chart package to the helm-charts repo
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(HELM_WORKFLOWS_TOKEN)" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$(ORG)/$(HELM_REPO_NAME)/dispatches \
-d '{"event_type":"chart-deleted","client_payload":{"chart":"$(REPO_NAME)","version":"$(CHART_VERSION)"}}'

0 comments on commit d0953b2

Please sign in to comment.