-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (44 loc) · 1.36 KB
/
generate.yml
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
name: Generate
on:
repository_dispatch:
types: [spec_release]
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
cache: true
- name: Pub cache
uses: actions/cache@v4
env:
cache-name: root
with:
path: ${{ env.PUB_CACHE }}
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ env.cache-name }}-
- name: Homebrew cache
uses: actions/cache@v4
with:
path: |
/home/linuxbrew/.linuxbrew
/home/linuxbrew/.linuxbrew/Library/Taps
/home/linuxbrew/.cache/Homebrew
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/bin/brew
key: ${{ runner.os }}-brew-${{ hashFiles('**/Brewfile') }}
restore-keys: |
${{ runner.os }}-brew-
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Generate
run: ./generate.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: ci/regenerate-from-spec
commit-message: "Regenerated from spec"
title: "[CI] Regenerated from spec"
body: "Regenerated from spec"