Skip to content

Commit

Permalink
Use new cache-azure-login action
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Jul 27, 2023
1 parent 3646b33 commit fafb999
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/clear-azure-redis-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fafb999

Please sign in to comment.