🐛 fix extensions doc generation script to properly trim the docum… #70
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
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 |