Skip to content

Commit da1cdd2

Browse files
committed
add usage metric
1 parent a8831f8 commit da1cdd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

action.yml

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ outputs:
4343
runs:
4444
using: 'composite'
4545
steps:
46+
- name: Collect metrics
47+
shell: 'bash'
48+
run: |
49+
endpoint="https://metrics.myshopify.dev"
50+
metric='{"events":[{"name": "oxygen.oxygenctl-action-usage", "type": "count", "value": 1}]}'
51+
curl -s -X POST -H "Content-Type: application/json" -d "$metric" "$endpoint"
52+
4653
- name: Build and Publish to Oxygen
4754
shell: 'bash'
4855
id: 'oxygen-cli-action'

0 commit comments

Comments
 (0)