Skip to content

Fix sql metrics.json #17

Fix sql metrics.json

Fix sql metrics.json #17

Workflow file for this run

name: 'Count metrics and namespaces'
on:
workflow_dispatch:
push:
paths:
- '**/metrics.json'
pull_request:
jobs:
test:
name: 'Count metrics and namespaces'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Count metrics and namespaces'
id: count
shell: pwsh
run: |
./.github/scripts/countMetrics.ps1 -inputDir ./templates
- uses: actions/github-script@v7
id: comment
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '${{ steps.count.outputs.totalMetrics }} metrics in ${{ steps.count.outputs.totalMetricNamespaces }} namespaces'
})