chore(deps): lock file maintenance #776
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |