Skip to content

Commit

Permalink
Fixed environment url
Browse files Browse the repository at this point in the history
  • Loading branch information
DonColon committed Mar 14, 2024
1 parent 9b78db9 commit f4fe11d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/deploy-app-netlify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
2 changes: 1 addition & 1 deletion .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f4fe11d

Please sign in to comment.