Skip to content

Commit 110a8c5

Browse files
committed
add usage metric
1 parent a8831f8 commit 110a8c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ outputs:
4343
runs:
4444
using: 'composite'
4545
steps:
46+
- name: Track usage
47+
run: |
48+
metric='{"name": "oxygenctl-action.usage", "type": "count", "value": 1}'
49+
curl -X POST -H "Content-Type: application/json" -d "$metric" https://metrics.myshopify.dev
50+
4651
- name: Build and Publish to Oxygen
4752
shell: 'bash'
4853
id: 'oxygen-cli-action'

0 commit comments

Comments
 (0)