Skip to content
activity

GitHub Action

Flutter Package Updater

v0.0.5 Pre-release

Flutter Package Updater

activity

Flutter Package Updater

Flutter package update automation

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Flutter Package Updater

uses: tianhaoz95/update-flutter-packages@v0.0.5

Learn more about this action in tianhaoz95/update-flutter-packages

Choose a version

Flutter Package Updater

All Contributors

.github/workflows/test-drive.yml Gitpod Ready-to-Code

Background

Dependabot is a great way to automatically keep dependencies up-to-date, but the support for Flutter is still under construction (hopefully).

Solution

For the time being, I put together this action to automate package updating for Flutter projects.

The action scans the default (master) branch and opens pull requests to update all packages defined in pubspec.yml.

The actions requires:

  • subosito/flutter-action@v1
  • actions/setup-java@v1
  • actions/checkout@v1

Example

on:
  schedule:
    - cron: 0 2 * * *
jobs:
  test:
    name: example Flutter package updater
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: '12.x'
      - uses: subosito/flutter-action@v1
        with:
          flutter-version: '1.12.13+hotfix.5'
          channel: 'stable'
      - name: run flutter package updater
        uses: tianhaoz95/update-flutter-packages@v0.0.1
        with:
          flutter-project: './sample_flutter_app'
          git-email: 'tianhaoz@umich.edu'
          git-name: 'Tianhao Zhou'
          token: ${{ secrets.TIANHAOZ_GITHUB_TOKEN }}

Happy hacking!

Spend your time on what matters, let automation take care the rest ;)

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tianhao Zhou

💻

Matteo Pietro Dazzi

💻

Preet Parekh

💻

This project follows the all-contributors specification. Contributions of any kind welcome!