Skip to content

Update list_data.yml #324

Update list_data.yml

Update list_data.yml #324

Workflow file for this run

name: Update list
on:
push: { main }
workflow_dispatch:
jobs:
update:
name: Update list
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Install dart
uses: dart-lang/setup-dart@v1
- name: Install dart dependencies
working-directory: updater
run: dart pub get
- name: Run dart project
run: dart updater/lib/update_list.dart
- name: Check difference
run: |
status=$(git status -s .) && \
echo $status && \
echo "GIT_STATUS=${status//$'\n'/\\n}" >> $GITHUB_ENV
- name: Push changes
if: "contains(env.GIT_STATUS, 'README.md')"
run: |
git config --global user.email "action@github.com" && \
git config --global user.name "Github CI" && \
git commit -a -m "update list" && \
git push