53bee62919
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
962 B
YAML
42 lines
962 B
YAML
name: Update README
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'packages/**'
|
|
- '.gitmodules'
|
|
- 'scripts/update_readme.dart'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
update-readme:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Dart
|
|
uses: dart-lang/setup-dart@v1
|
|
|
|
- name: Run update script
|
|
run: dart scripts/update_readme.dart
|
|
|
|
- name: Commit and Push
|
|
run: |
|
|
if [ -n "$(git status --porcelain README.md)" ]; then
|
|
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 commit -m "docs: update README [skip ci]"
|
|
git push
|
|
else
|
|
echo "No changes to README.md"
|
|
fi
|