Generate README Images #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate content for README | |
name: Generate README Images | |
on: | |
schedule: [{cron: "0 0 * * *"}] | |
workflow_dispatch: | |
jobs: | |
readme-images: | |
name: Make Repo Images | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
#- uses: lowlighter/metrics@latest | |
# with: | |
# token: ${{ secrets.BOT_TOKEN }} | |
# filename: assets/metrics.svg | |
# user: GovA11y | |
# config_timezone: America/New_York | |
# Repo Summary | |
# https://github.com/TheBoatyMcBoatFace/metrics/blob/main/source/plugins/repositories/README.md | |
- name: Repo Overview | |
uses: lowlighter/metrics@latest | |
with: | |
template: repository | |
filename: assets/metrics.repository.svg | |
token: ${{ secrets.BOT_TOKEN }} | |
user: GovA11y | |
# repo: ${{ github.repository }} | |
plugin_lines: yes | |
plugin_followup: yes | |
plugin_projects: yes | |
# plugin_projects_repositories: lowlighter/metrics/project | |
# Repo People | |
# https://github.com/TheBoatyMcBoatFace/metrics/blob/main/source/plugins/people/README.md | |
- name: Contributors and sponsors | |
uses: lowlighter/metrics@latest | |
with: | |
filename: assets/metrics.plugin.people.repository.svg | |
token: ${{ secrets.BOT_TOKEN }} | |
base: "" | |
template: repository | |
user: GovA11y | |
# repo: ${{ github.repository }} | |
plugin_people: yes | |
plugin_people_types: contributors, stargazers, watchers, sponsors | |
# Licenses for Repo | |
# https://github.com/TheBoatyMcBoatFace/metrics/blob/main/source/plugins/licenses/README.md | |
- name: Licenses and permissions | |
uses: lowlighter/metrics@latest | |
with: | |
filename: assets/metrics.plugin.licenses.svg | |
token: ${{ secrets.BOT_TOKEN }} | |
base: "" | |
template: repository | |
user: GovA11y | |
repo: ${{ github.repository }} | |
plugin_licenses: yes | |
plugin_licenses_setup: bash -c '[[ -f package.json ]] && npm ci || true' | |
plugin_licenses_legal: yes | |
plugin_licenses_ratio: yes | |