Skip to content

Commit

Permalink
chore(ci): fix create_grafana_key in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sduranc authored Oct 22, 2024
1 parent 19672f6 commit 2832fd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/grafana-annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
- name: Create Grafana API Key
id: create_grafana_key
run: |
az grafana api-key create --key keyname --name ${{ github.event.repository.name }}-key \
--resource-group "${{ secrets.AZURE_RESOURCE_GROUP }}" --role editor --output json > grafana_key.json
az grafana api-key create --key keyname --name ${{ secrets.GRAFANA_NAME }} \
--resource-group "${{ secrets.AZURE_RESOURCE_GROUP }}" --role editor \
--time-to-live 1m --output json > grafana_key.json
key=$(jq -r '.key' grafana_key.json)
echo "::add-mask::$key"
echo "grafana_api_key=$key" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 2832fd9

Please sign in to comment.