-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 920 Bytes
/
readme.yaml
File metadata and controls
30 lines (28 loc) · 920 Bytes
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
name: Update README.md on push to main
on:
push:
branches:
- main
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install dependencies
run: dart pub get
- name: Generate README
run: dart run tool/generate_readme.dart
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git diff --cached --quiet || git commit -m 'docs(readme): update README.md [skip ci]'
- name: Push changes
uses: ad-m/github-push-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}