refactor: removed release
scripts
#19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |