From f4fe11d6b46908ff5b9d780ac5990371d5a02c8b Mon Sep 17 00:00:00 2001 From: Dardan Rrafshi Date: Thu, 14 Mar 2024 22:30:28 +0100 Subject: [PATCH] Fixed environment url --- .github/scripts/deploy-app-netlify.js | 5 +++-- .github/workflows/ci-deploy.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/scripts/deploy-app-netlify.js b/.github/scripts/deploy-app-netlify.js index 5a38c07..3aa17a2 100644 --- a/.github/scripts/deploy-app-netlify.js +++ b/.github/scripts/deploy-app-netlify.js @@ -8,7 +8,8 @@ export default async ({ core, exec, netlify }) => { const { stdout } = await exec.getExecOutput(command); const deployInfo = JSON.parse(stdout); - core.info(`\nDeployed app at url: ${deployInfo.deploy_url}`); - + deployInfo.environmentUrl = deployInfo.url || deployInfo.deploy_url; + + core.info(`\nDeployed app at url: ${deployInfo.environmentUrl}`); core.setOutput("deployInfo", deployInfo); }; diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml index df6ad22..c8f65e3 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-deploy.yml @@ -18,7 +18,7 @@ jobs: environment: name: netlify - url: ${{ steps.deploy_app.outputs.deployInfo.deployUrl }} + url: ${{ steps.deploy_app.outputs.deployInfo.environmentUrl }} steps: - name: Checkout Repository ${{ github.event.repository.name }}