Skip to content

fix(sdk): update dependency flutter to v3.22.2 #1132

fix(sdk): update dependency flutter to v3.22.2

fix(sdk): update dependency flutter to v3.22.2 #1132

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: Create GitHub App token 🔑
id: create-app-token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Checkout 🛎️
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
token: ${{ steps.create-app-token.outputs.token }}
- name: Get project Flutter version 🏷️
id: fvm-config
uses: kuhnroyal/flutter-fvm-config-action@v1.2.0
- name: Setup Flutter 💻
uses: subosito/flutter-action@v2.16.0
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@v4
with:
path: |
**/.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/git-auto-commit-action@v5.0.1
with:
commit_message: "chore(deps): dependencies maintenance"