From fafb9990bbb1ed50273436987f02977f68c14741 Mon Sep 17 00:00:00 2001 From: ebronson68 <111298136+ebronson68@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:06:34 -0500 Subject: [PATCH] Use new cache-azure-login action --- .../workflows/clear-azure-redis-cache.yaml | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/clear-azure-redis-cache.yaml b/.github/workflows/clear-azure-redis-cache.yaml index e1b94bde..aad84adf 100644 --- a/.github/workflows/clear-azure-redis-cache.yaml +++ b/.github/workflows/clear-azure-redis-cache.yaml @@ -23,28 +23,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Hash azureCredentials secret - uses: pplanel/hash-calculator-action@v1.3.1 - id: hash + - name: Login to Azure + uses: Andrews-McMeel-Universal/cache-azure-login@v1 with: - input: ${{ secrets.azureCredentials }} - method: MD5 - - - name: Cache Azure credentials - id: azure-cache - uses: actions/cache@v3 - with: - path: | - ~/.Azure - ${{ github.workspace }}/.Azure - key: ${{ runner.os }}-azurecreds-${{ steps.hash.outputs.digest }} - - - name: Login via Az module - if: steps.azure-cache.outputs.cache-hit != 'true' - uses: azure/login@v1 - with: - creds: "${{ secrets.azureCredentials }}" - enable-AzPSSession: true + azureCredentials: "${{ secrets.azureCredentials }}" - name: Install Dependencies uses: awalsh128/cache-apt-pkgs-action@v1