Skip to content

Commit

Permalink
keep port numbers in publish url
Browse files Browse the repository at this point in the history
  • Loading branch information
doug0102 committed Feb 1, 2024
1 parent 7b6bcd3 commit cec122c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Get Publishing Profile
id: get-publishing-profile
run: |
profile=$(az webapp deployment list-publishing-profiles --resource-group ${{ env.AZURE_WEBAPP_NAME }} --name ${{ env.AZURE_WEBAPP_NAME }} --xml | sed -e 's|\"<|<|g' | sed -e 's|>\"|>|g' | sed -e 's|\\"|"|g' | sed -e 's|\\\\|\\|g' | sed -E 's/:[0-9]+//g') > /dev/null
profile=$(az webapp deployment list-publishing-profiles --resource-group ${{ env.AZURE_WEBAPP_NAME }} --name ${{ env.AZURE_WEBAPP_NAME }} --xml | sed -e 's|\"<|<|g' | sed -e 's|>\"|>|g' | sed -e 's|\\"|"|g' | sed -e 's|\\\\|\\|g') > /dev/null
echo "::set-output name=profile::$profile" > /dev/null
- name: GitHub Auth Login
Expand All @@ -61,9 +61,7 @@ jobs:

- uses: actions/checkout@v3
- name: Create Secret
run: |
escaped_profile=$(printf "%q" "${{ env.PROFILE }}")
gh secret set "${{ env.SECRET_NAME }}" --body "${{ env.PROFILE }}"
run: gh secret set "${{ env.SECRET_NAME }}" --body "${{ env.PROFILE }}"
env:
PROFILE: ${{ steps.get-publishing-profile.outputs.profile }}

Expand Down

0 comments on commit cec122c

Please sign in to comment.