From 56af8a09af0a9dc615df64105647790b10010700 Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Sun, 30 Jan 2022 21:02:49 -0500 Subject: [PATCH] chore(ci): script to clear CI Flutter SDK [skip ci] --- .github/workflows/clear_flutter_cache.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/clear_flutter_cache.yml diff --git a/.github/workflows/clear_flutter_cache.yml b/.github/workflows/clear_flutter_cache.yml new file mode 100644 index 00000000..66ee6c7b --- /dev/null +++ b/.github/workflows/clear_flutter_cache.yml @@ -0,0 +1,23 @@ +name: Clear Flutter Cache + +on: + workflow_dispatch: + +jobs: + clear: + 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 }} + + - name: Flutter Doctor + working-directory: ${{ github.workspace }} + run: flutter doctor -v