Skip to content

Commit 537bd8d

Browse files
committed
fix: use dynamic repository name in metrics submission
1 parent 8f78158 commit 537bd8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/actions/pushLoggedMetrics/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ runs:
4646
keyfile=$(mktemp) || exit 1
4747
cat > "$keyfile" <<< "$METRICSKEY"
4848
sig=$(printf %s "$metrics" | openssl dgst -sha256 -sign "$keyfile" -out - | base64 -w0)
49+
50+
repo_name=$(basename "$GITHUB_REPOSITORY")
51+
4952
jq --compact-output --null-input \
5053
--arg metrics "$metrics" \
51-
--arg runner sf-platform \
54+
--arg runner "$repo_name" \
5255
--arg sig "$sig" \
5356
'{"runner":$runner,"metrics":$metrics,"signature":$sig}' |
5457
tee >(curl -D- -H 'Content-Type: application/json' --data-binary @- \
@@ -59,3 +62,4 @@ runs:
5962
fi
6063
env:
6164
METRICSKEY: ${{ inputs.metricsKey }}
65+
GITHUB_REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)