Skip to content

Commit

Permalink
(workflow ) jqパースによる.fvmrc対応
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux committed Oct 22, 2024
1 parent 7117a62 commit 2aa9492
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/aab_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $GITHUB_ENV

- name: Install flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true

- uses: actions/setup-java@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/dart_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:

- run: dart format --output=none --set-exit-if-changed .

- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $GITHUB_ENV

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true

- name: Run flutter version
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $GITHUB_ENV

- name: Install flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true

- uses: actions/setup-java@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/windows_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $env:GITHUB_ENV

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true

- name: Flutter pub get
Expand Down

0 comments on commit 2aa9492

Please sign in to comment.