Skip to content

Commit

Permalink
Merge pull request #94 from DonColon/feature-pipeline
Browse files Browse the repository at this point in the history
Fixed environment url
  • Loading branch information
DonColon authored Mar 14, 2024
2 parents cc0b654 + f4fe11d commit 552b41b
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 552b41b

Please sign in to comment.