-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1008 Bytes
/
stats.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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