Skip to content

Commit

Permalink
Resolving shellcheck SC2013 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Oct 9, 2023
1 parent db4d3df commit 1d30efa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ephemeral-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ jobs:
REPOSITORY_NAME=$(echo "${{ github.event.repository.name }}" | awk -F '_' '{print $1}' | tr -d "-")
HOSTNAME="${{ steps.hostname.outputs.hostname }}"
URL_VARS=""
for var in $(grep -E "localhost|${REPOSITORY_NAME}.com" .env | awk -F '=' '{print $1}' | sed "s|$|=${HOSTNAME}|g"); do
while IFS= read -r line; do
var=$(echo "$line" | awk -F '=' '{print $1}' | sed "s|$|=${HOSTNAME}|g")
URL_VARS+="$var "
done
done < <(grep -E "localhost|${REPOSITORY_NAME}.com" .env)
az containerapp update -n "${{ needs.prepare.outputs.repositoryName }}-${{ needs.prepare.outputs.jiraTicketIdLc }}" -g "${{ inputs.clusterResourceGroup }}" --set-env-vars "${URL_VARS}"
Expand Down

0 comments on commit 1d30efa

Please sign in to comment.