Skip to content

feat!: Upgrade to DCM 1.12.0 #5

feat!: Upgrade to DCM 1.12.0

feat!: Upgrade to DCM 1.12.0 #5

name: Update .lock files on dependabot PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
run_if:
if: startsWith(github.head_ref, 'dependabot/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Flutter
uses: ./.github/actions/setup
- name: Get dependencies
run: melos bs
- name: Check if .lock was changed
id: lock_changed
run: git status --porcelain | grep -q '.lock'
continue-on-error: true
- name: Commit changes
if: steps.lock_changed.outcome == 'success'
run: |
git config --local user.email "[email protected]"
git config --local user.name "mews-tech"
git add \*.lock
git commit -m "Update .lock files"
git push origin ${{ github.ref_name }}