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