chore(ci): cache flutter by commit hash [skip ci]

This commit is contained in:
Jagandeep Brar
2022-01-30 21:10:22 -05:00
parent 56af8a09af
commit 8336ce4dc8
6 changed files with 6 additions and 4 deletions

View File

@@ -8,15 +8,12 @@ jobs:
name: Clear Cache
runs-on: ubuntu-latest
steps:
- name: generate Unique Key
run: echo CACHE_KEY=key-$(date +%s) >> $GITHUB_ENV
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: beta
cache: true
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ github.sha }}
- name: Flutter Doctor
working-directory: ${{ github.workspace }}