From b91da96ffc065c121f0d2f2fd74c462f756ac42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adil=20Atalay=20Hamamc=C4=B1o=C4=9Flu?= <38231748+recoskyler@users.noreply.github.com> Date: Thu, 25 Apr 2024 01:04:53 +0300 Subject: [PATCH] refactor: use .env vars for version --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index defe46c..edcfe99 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,17 +15,17 @@ jobs: - uses: actions/checkout@v4.1.1 - uses: actions/setup-java@v4 with: - java-version: 17 + java-version: ${{ env.JAVA_VERSION }} - name: Cache Flutter dependencies uses: actions/cache@v4.0.2 with: path: /opt/hostedtoolcache/flutter - key: ${{ runner.OS }}-flutter-install-cache-3.19.6 + key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} - uses: subosito/flutter-action@v2 with: - flutter-version: 3.19.6 + flutter-version: ${{ env.FLUTTER_VERSION }} - run: flutter doctor -v @@ -65,17 +65,17 @@ jobs: - uses: actions/checkout@v4.1.1 - uses: actions/setup-java@v4 with: - java-version: 17 + java-version: ${{ env.JAVA_VERSION }} - name: Cache Flutter dependencies uses: actions/cache@v4.0.2 with: path: /opt/hostedtoolcache/flutter - key: ${{ runner.OS }}-flutter-install-cache-3.19.6 + key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} - uses: subosito/flutter-action@v2 with: - flutter-version: 3.19.6 + flutter-version: ${{ env.FLUTTER_VERSION }} - run: flutter doctor -v @@ -115,17 +115,17 @@ jobs: - uses: actions/checkout@v4.1.1 - uses: actions/setup-java@v4 with: - java-version: 17 + java-version: ${{ env.JAVA_VERSION }} - name: Cache Flutter dependencies uses: actions/cache@v4.0.2 with: path: /opt/hostedtoolcache/flutter - key: ${{ runner.OS }}-flutter-install-cache-3.19.6 + key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} - uses: subosito/flutter-action@v2 with: - flutter-version: 3.19.6 + flutter-version: ${{ env.FLUTTER_VERSION }} - run: flutter doctor -v @@ -168,7 +168,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' - flutter-version: 3.19.6 + flutter-version: ${{ env.FLUTTER_VERSION }} - name: Install project dependencies run: flutter pub get