Skip to content

🐛 fix extensions doc generation script to properly trim the docum… #70

🐛 fix extensions doc generation script to properly trim the docum…

🐛 fix extensions doc generation script to properly trim the docum… #70

Workflow file for this run

name: Stats
on:
push:
branches:
- main
paths:
- '**.dart'
tags-ignore:
- '**'
workflow_dispatch:
jobs:
update_stats:
runs-on: macos-latest
steps:
- name: Tap Google's Dart formula repository
run: brew tap dart-lang/dart
- name: Install the Dart formula
run: brew install dart
- uses: actions/checkout@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: dart pub get
- name: Generate Stats
run: dart scripts/stats.dart
- name: Generate Extensions Docs
run: dart scripts/extensions_docs_generator.dart -o EXTENSIONS.md
- name: Update Stats on README.md
uses: EndBug/add-and-commit@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
add: '*.md'
message: '[CI] Update Stats & Extensions Docs'
signoff: true