Skip to content

Commit

Permalink
wip: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlnf committed Jan 27, 2025
1 parent db5d640 commit 52a846c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ jobs:
- id: encode-auth
run: |
encoded_header=$(echo -n "${{ secrets.grafana_instance_id }}:${{ secrets.grafana_api_key }}" | base64)
cleaned_instance_id=$(echo "${{ secrets.grafana_instance_id }}" | tr -d '\n' | tr -d '\r')
cleaned_api_key=$(echo "${{ secrets.grafana_api_key }}" | tr -d '\n' | tr -d '\r')
encoded_header=$(echo -n "$cleaned_instance_id:$cleaned_api_key" | base64)
echo "OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic $encoded_header" >> $GITHUB_ENV
shell: bash

Expand Down

0 comments on commit 52a846c

Please sign in to comment.