Skip to content

Commit

Permalink
chore: fix deployment output
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 6, 2024
1 parent c76caf1 commit 182a49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/shared/deploy-netlify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ runs:
status: success
env: ${{ steps.deployment.outputs.env }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ steps.netlify.deploy_url }}
env_url: ${{ steps.netlify.outputs.deploy_url }}
6 changes: 3 additions & 3 deletions build/deploy-netlify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
*/

import { createHash } from 'crypto';
import { createReadStream, existsSync } from 'fs';
import { createReadStream, existsSync, writeFileSync } from 'fs';
import { readdir } from 'fs/promises';
import { exec } from 'child_process';
import path from 'path';
import yargs from 'yargs';
import Queue from 'queue';
Expand Down Expand Up @@ -53,7 +52,8 @@ const MAX_RETRIES = 5;
}

if (process.env.CI) {
exec(`echo "deploy_url=${config.branch ? deploy.deploy_ssl_url : deploy.ssl_url}" >> $GITHUB_OUTPUT`);
console.log(`Write "deploy_url=${config.branch ? deploy.deploy_ssl_url : deploy.ssl_url}" to ${process.env.GITHUB_OUTPUT}`);
writeFileSync(process.env.GITHUB_OUTPUT, `deploy_url=${config.branch ? deploy.deploy_ssl_url : deploy.ssl_url}`, 'utf-8');
}
})();

Expand Down

0 comments on commit 182a49d

Please sign in to comment.