Skip to content

Commit

Permalink
Move jq to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Sep 17, 2024
1 parent eb973e4 commit 7ef0655
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/azfunction-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
with:
ref: ${{ inputs.checkoutRef }}

- name: Install jq apt package
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: jq

- name: Setup application platform
uses: actions/setup-dotnet@v4
with:
Expand Down Expand Up @@ -194,8 +199,7 @@ jobs:
-n "${{ inputs.AZURE_FUNCTIONAPP_NAME }}" \
--slot "${{ inputs.environment }}" | tee)
fi
PRINCIPAL_ID=$(echo "$IDENTITY" | grep -o '"principalId": *"[^"]*"' | sed 's/.*: *"\([^"]*\)".*/\1/')
echo "functionAppIdentity=$PRINCIPAL_ID" >> $GITHUB_ENV
echo "functionAppIdentity=$(echo $IDENTITY | jq -r '.principalId')" >> $GITHUB_ENV
- name: Retrieve key vault name
uses: azure/cli@v2
Expand Down Expand Up @@ -239,11 +243,6 @@ jobs:
contentTypes: Env
environmentVariableSeparator: "\n"

- name: Install jq apt package
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: jq

- name: Add environment variables to function app
run: |
set -eu
Expand Down

0 comments on commit 7ef0655

Please sign in to comment.