Skip to content

Commit

Permalink
[refactor] Renaming the token to match the actual in use one
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jun 18, 2024
1 parent 5c38da6 commit 638c60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ jobs:
run: |
make helm-sync-package \
VERSION=${{ inputs.operatorVersion }} \
GITHUB_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \
HELM_WORKFLOWS_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \
BROWSER_DOWNLOAD_URL=${{ steps.upload-chart.outputs.browser_download_url }}
4 changes: 2 additions & 2 deletions make/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ helm-package: $(HELM) ## Package the helm chart
$(HELM) package charts/limitador-operator

# GitHub Token with permissions to upload to the release assets
GITHUB_TOKEN ?= <YOUR-TOKEN>
HELM_WORKFLOWS_TOKEN ?= <YOUR-TOKEN>
# GitHub Release Asset Browser Download URL, it can be find in the output of the uploaded asset
BROWSER_DOWNLOAD_URL ?= <BROWSER-DOWNLOAD-URL>
# Github repo name for the helm charts repository
Expand All @@ -47,7 +47,7 @@ helm-sync-package: $(HELM) ## Sync the helm chart package to the helm-charts rep
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(GITHUB_TOKEN)" \
-H "Authorization: Bearer $(HELM_WORKFLOWS_TOKEN)" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://github.com/gitapi/repos/$(ORG)/$(HELM_REPO_NAME)/dispatches \
-d '{"event_type":"sync-chart","client_payload":{"chart":"$(REPO_NAME)","version":"$(CHART_VERSION)", "browser_download_url": "$(BROWSER_DOWNLOAD_URL)"}}'

0 comments on commit 638c60b

Please sign in to comment.