Skip to content

Commit dc672fa

Browse files
committed
add usage metric
1 parent a8831f8 commit dc672fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

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

0 commit comments

Comments
 (0)