Follow this documentation to get this set up. This uses a feature from the open source lowlighter/metrics project.
- 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
- Updated the
README.md
# My Metrics Snapshot
![](./chat-ui-examples-metrics.repository.svg)