Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.18 KB

File metadata and controls

43 lines (36 loc) · 1.18 KB

Usage

Follow this documentation to get this set up. This uses a feature from the open source lowlighter/metrics project.

  1. Created todo.yml
name: Metrics
on:
  # Schedule daily updates
  schedule: [{cron: "0 0 * * *"}]
  # (optional) Run workflow manually
  workflow_dispatch:
  # (optional) Run workflow when pushing on master/main
  push: {branches: ["master", "main"]}
jobs:
  github-metrics:
    strategy:
      matrix:
        repository: ["chatjs", "chat-interface", "chat-ui-examples"]
    runs-on: ubuntu-latest
    permissions:
      contents: write
      
    steps:
      - uses: lowlighter/metrics@latest
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          template: repository
          filename: ${{ matrix.repository }}-metrics.repository.svg
          user: amazon-connect
          repo: amazon-connect-${{ matrix.repository }}
          plugin_lines: yes
          plugin_followup: yes
  1. Updated the README.md
# My Metrics Snapshot

![](./chat-ui-examples-metrics.repository.svg)