Skip to content

Commit

Permalink
Move Flutter version to a yaml variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser committed May 2, 2024
1 parent 38ef36c commit ee0f81e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Check

define: &flutter_version "3.10.6" # Uses the minimum supported version.

on:
# Curently, this workflow is triggered by pull request events only.
# Uncomment the following line to run this workflow on push events
Expand All @@ -18,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6' # Uses the minimum supported version.
flutter-version: *flutter_version
channel: 'stable'
# Get Flutter version
- name: Get Flutter version
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6' # Uses the minimum supported version.
flutter-version: *flutter_version
channel: 'stable'
# Get Flutter version
- name: Get Flutter version
Expand Down Expand Up @@ -79,7 +81,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6' # Uses the minimum supported version.
flutter-version: *flutter_version
channel: 'stable'
# Get Flutter version
- name: Get Flutter version
Expand Down

0 comments on commit ee0f81e

Please sign in to comment.