Skip to content

Mixing specific versions and channels is kinda unergonomic #357

@benthillerkus

Description

@benthillerkus

I often want to write strategies like so

strategy:
  matrix:
    flutter: [3.29.3, 3.32.0, dev, master]

But because of the segmentation of the version into channel and flutter-version I cannot easily just write

- uses: subosito/flutter-action@v2
  with:
    flutter-version: ${{ matrix.flutter }}

Currently I'm doing

- uses: subosito/flutter-action@v2
  if: ${{ matrix.flutter }} != 'dev' && ${{ matrix.flutter }} != 'master'
  with:
    flutter-version: ${{ matrix.flutter }}
    cache: true

- uses: subosito/flutter-action@v2
  if: ${{ matrix.flutter }} == 'dev' || ${{ matrix.flutter }} == 'master'
  with:
    channel: ${{ matrix.flutter }}
    cache: false

But I'd rather not have to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions