Skip to content

refactor: removed release scripts #19

refactor: removed release scripts

refactor: removed release scripts #19

name: Update Examples Index
on:
pull_request:
paths:
- 'examples/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0 # fetch complete history for all branches and tags
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- name: Install dependencies
run: dart pub get
- name: Run update script
run: dart bin/update_examples_document.dart
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
else
git commit -m "[SCHEDULED] Update Document" -a
git push
fi