-
-
Notifications
You must be signed in to change notification settings - Fork 76
54 lines (45 loc) · 1.47 KB
/
post-dependency-update.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
52
53
54
name: Post dependency update
on:
pull_request:
paths:
- "**/pubspec.yaml"
- "**/pubspec.lock"
- .fvm/fvm_config.json
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
token: ${{ secrets.PAT }}
- name: Get project Flutter version 🏷️
id: fvm-config
uses: kuhnroyal/[email protected]
- name: Setup Flutter 💻
uses: subosito/[email protected]
with:
flutter-version: ${{ steps.fvm-config.outputs.FLUTTER_VERSION }}
cache: true
cache-key: ${{ runner.os }}-flutter-${{ steps.fvm-config.outputs.FLUTTER_VERSION }}-${{ hashFiles('**/pubspec.lock') }}
- name: Setup Cocoapods 💻
run: sudo gem install cocoapods
- name: Cache Pub 💾
uses: actions/cache@v3
with:
path: |
${{ env.PUB_CACHE }}
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Update dependencies 🔼
run: |
flutter pub get
flutter precache --macos
cd macos && pod update
- name: Commit changes 🆕
uses: stefanzweifel/[email protected]
with:
commit_message: "chore(deps): dependencies maintenance"