-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (52 loc) · 1.49 KB
/
generate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Generate
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
flutter-version: '3.24.x'
jobs:
build-runner:
if: github.event_name != 'push'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- run: flutter pub global activate melos
- run: melos pub-get
- run: flutter pub get # Bad state: Unable to generate package graph
- run: melos run generate
- run: ./.github/scripts/check-outdated-files.sh
l10n:
if: github.event_name != 'push'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- run: flutter pub global activate melos
- run: melos pub-get
- run: melos run gen-l10n
- run: ./.github/scripts/check-outdated-files.sh
pull-request:
if: github.event_name != 'pull_request'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- run: flutter pub global activate melos
- run: melos pub-get
- run: flutter pub get # Bad state: Unable to generate package graph
- run: melos run generate
- run: melos run gen-l10n
- uses: peter-evans/create-pull-request@v7
with:
title: 'Regenerate files'
commit-message: 'Regenerate files'