git: fixed workflow not showing up in actions
This commit is contained in:
parent
aa307ebd94
commit
5558c49869
1 changed files with 32 additions and 0 deletions
32
.github/workflows/generate_sources.yml
vendored
Normal file
32
.github/workflows/generate_sources.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Generate Sources
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Dart
|
||||
uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
|
||||
|
||||
- name: Generage
|
||||
run: |
|
||||
dart run source_generator.dart
|
||||
|
||||
- name: Commit and Push Changes
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git checkout main
|
||||
git add index.json
|
||||
git add anime_index.json
|
||||
git add novel_index.json
|
||||
git commit -m "Update extensions"
|
||||
git push origin main --force
|
||||
Loading…
Reference in a new issue