Skip to content

Commit 66dd789

Browse files
Update gh action
1 parent 2ddce68 commit 66dd789

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/copilot_metrics_retention.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,24 @@
2626
org_name: 'hivemq'
2727
json_path: 'metrics.json'
2828

29+
- name: Copilot Metrics Retention
30+
uses: ambilykk/copilot-metrics-retention@5b9ef15ce66fc883afb3b6127f960e44d5233a50
31+
with:
32+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
33+
org_name: 'hivemq-cloud'
34+
json_path: 'metrics_hivemq-cloud.json'
35+
2936
- uses: actions/upload-artifact@v4
3037
with:
3138
name: metrics.json
32-
path: 'metrics.json'
39+
path: |
40+
metrics_hivemq.json
41+
metrics_hivemq-cloud.json
3342
3443
- name: Commit and push if it changed
3544
run: |
36-
git config --global user.name 'Copilot Metrics Retention'
37-
git config --global user.email '[email protected]'
38-
git add -A
39-
git diff --quiet && git diff --staged --quiet || git commit -m "Copilot Metrics data update"
45+
git config user.name 'Copilot Metrics Retention'
46+
git config user.email '[email protected]'
47+
git add metrics_hivemq.json metrics_hivemq-cloud.json
48+
git commit -m "Copilot Metrics data update" || exit 0
4049
git push

0 commit comments

Comments
 (0)