Skip to content

Commit 2252526

Browse files
committed
Changed alias link name
1 parent 5577a8f commit 2252526

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
command:
88
description: 'Command to execute to start vercel deployment'
99
required: true
10-
deploy_alias:
10+
apply_domain_aliases:
1111
description: 'Enable alias feature in the vercel.json'
1212
required: false
1313
default: "true"

lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
5555
}
5656
try {
5757
const command = core.getInput('command');
58-
const deploy_alias = core.getInput('deploy_alias') == 'true';
58+
const apply_domain_aliases = core.getInput('apply_domain_aliases') == 'true';
5959
const failIfAliasNotLinked = core.getInput('failIfAliasNotLinked') == 'true';
6060
core.debug(`Received command: ${command}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs
61-
core.debug(`Should we deploy aliases ? "${deploy_alias}"`);
62-
yield vercel_1.default(command, deploy_alias, failIfAliasNotLinked);
61+
core.debug(`Should we deploy aliases ? "${apply_domain_aliases}"`);
62+
yield vercel_1.default(command, apply_domain_aliases, failIfAliasNotLinked);
6363
}
6464
catch (error) {
6565
core.setFailed(error.message);

lib/vercel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ const create_aliases = (deploymentUrl, customDeploymentFile, failIfAliasNotLinke
105105
}
106106
}
107107
else {
108-
console.log(`No "alias" key found in ${vercelConfigFile}`);
108+
core.warning(`No "alias" key found in ${vercelConfigFile}`);
109109
}
110110
}
111111
else {
112-
core.setFailed(`Cannot access to vercel config file "${vercelConfigFile}". Deployment succeeded but no aliases has been created.`);
112+
core.setFailed(`You asked to link aliases but we cannot access to vercel config file "${vercelConfigFile}". Deployment succeeded but no aliases has been created.`);
113113
}
114114
});
115115
const deploy = (command, deployAlias, failIfAliasNotLinked) => __awaiter(void 0, void 0, void 0, function* () {

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ const run = async (): Promise<void> => {
2626

2727
try {
2828
const command: string = core.getInput('command');
29-
const deploy_alias: boolean = core.getInput('deploy_alias') == 'true';
29+
const apply_domain_aliases: boolean = core.getInput('apply_domain_aliases') == 'true';
3030
const failIfAliasNotLinked: boolean = core.getInput('failIfAliasNotLinked') == 'true';
3131
core.debug(`Received command: ${command}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs
32-
core.debug(`Should we deploy aliases ? "${deploy_alias}"`);
33-
await deploy(command, deploy_alias, failIfAliasNotLinked);
32+
core.debug(`Should we deploy aliases ? "${apply_domain_aliases}"`);
33+
await deploy(command, apply_domain_aliases, failIfAliasNotLinked);
3434
} catch (error) {
3535
core.setFailed(error.message);
3636
}

src/vercel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ const create_aliases = async (deploymentUrl: string, customDeploymentFile: strin
8383
console.log(`Created alias ${alias}`);
8484
}
8585
} else {
86-
console.log(`No "alias" key found in ${vercelConfigFile}`);
86+
core.warning(`No "alias" key found in ${vercelConfigFile}`);
8787
}
8888
} else {
89-
core.setFailed(`Cannot access to vercel config file "${vercelConfigFile}". Deployment succeeded but no aliases has been created.`)
89+
core.setFailed(`You asked to link aliases but we cannot access to vercel config file "${vercelConfigFile}". Deployment succeeded but no aliases has been created.`)
9090
}
9191
}
9292

0 commit comments

Comments
 (0)