Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update .lock files in dependabot PRs #488

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/dependabot-follow-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update .lock files on dependabot PR
on:
pull_request:
types:
- opened
ookami-kb marked this conversation as resolved.
Show resolved Hide resolved
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 }}
Loading