[packages.dart] chore: migrate workspace to hermetic Bazel build environment
Update README / update-readme (push) Successful in 23s
Update README / update-readme (push) Successful in 23s
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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
|
||||
@@ -0,0 +1,45 @@
|
||||
name: Update Submodules
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Runs daily at midnight
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-submodules:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Update submodules
|
||||
run: |
|
||||
git submodule update --remote --recursive
|
||||
|
||||
- name: Check for changes
|
||||
id: diff
|
||||
run: |
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "changes=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "changes=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Create Pull Request
|
||||
if: steps.diff.outputs.changes == 'true'
|
||||
uses: peter-evans/create-pull-request@v8
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: "chore: update submodules"
|
||||
title: "chore: update submodules"
|
||||
body: "Automated update of submodules to their latest commits."
|
||||
branch: update-submodules
|
||||
base: main
|
||||
delete-branch: true
|
||||
Reference in New Issue
Block a user