Skip to content

Commit 3ac95d3

Browse files
committed
add preview comment
1 parent 885e186 commit 3ac95d3

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/azure-deploy-storybook.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,18 @@ jobs:
8181
PORT=${PORT}
8282
HOST=0.0.0.0
8383
ENV=${{ inputs.environment }}
84+
85+
- name: fetch fqdn
86+
id: fqdn
87+
run: |
88+
FQDN=$(az containerapp show -n "${APP_NAME}" -g "${RESOURCE_GROUP}" --query properties.configuration.ingress.fqdn -o tsv)
89+
echo "fqdn=${FQDN}" >> "$GITHUB_OUTPUT"
90+
91+
update-comment:
92+
if: ${{ inputs.update_comment }}
93+
needs: deploy
94+
uses: ./.github/workflows/preview-comment.yml
95+
with:
96+
pr_number: ${{ github.event.number }}
97+
deployment_type: theme
98+
deployment_url: https://${{ needs.deploy.outputs.fqdn }}

.github/workflows/azure-deploy-themebuilder.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,18 @@ jobs:
8181
PORT=${PORT}
8282
HOST=0.0.0.0
8383
ENV=${{ inputs.environment }}
84+
85+
- name: fetch fqdn
86+
id: fqdn
87+
run: |
88+
FQDN=$(az containerapp show -n "${APP_NAME}" -g "${RESOURCE_GROUP}" --query properties.configuration.ingress.fqdn -o tsv)
89+
echo "fqdn=${FQDN}" >> "$GITHUB_OUTPUT"
90+
91+
update-comment:
92+
if: ${{ inputs.update_comment }}
93+
needs: deploy
94+
uses: ./.github/workflows/preview-comment.yml
95+
with:
96+
pr_number: ${{ github.event.number }}
97+
deployment_type: theme
98+
deployment_url: https://${{ needs.deploy.outputs.fqdn }}

.github/workflows/azure-deploy-www.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
deploy:
4545
runs-on: ubuntu-latest
4646
environment: azure
47+
outputs:
48+
fqdn: ${{ steps.fqdn.outputs.fqdn }}
4749
steps:
4850
- uses: actions/checkout@v4
4951

@@ -81,3 +83,18 @@ jobs:
8183
PORT=${PORT}
8284
HOST=0.0.0.0
8385
ENV=${{ inputs.environment }}
86+
87+
- name: fetch fqdn
88+
id: fqdn
89+
run: |
90+
FQDN=$(az containerapp show -n "${APP_NAME}" -g "${RESOURCE_GROUP}" --query properties.configuration.ingress.fqdn -o tsv)
91+
echo "fqdn=${FQDN}" >> "$GITHUB_OUTPUT"
92+
93+
update-comment:
94+
if: ${{ inputs.update_comment }}
95+
needs: deploy
96+
uses: ./.github/workflows/preview-comment.yml
97+
with:
98+
pr_number: ${{ github.event.number }}
99+
deployment_type: theme
100+
deployment_url: https://${{ needs.deploy.outputs.fqdn }}

0 commit comments

Comments
 (0)