Skip to content

Commit ec2a943

Browse files
authored
Removing optional input arguments from the action (#139)
1 parent 9a12be5 commit ec2a943

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

action.yml

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ inputs:
4242
description: 'Percentage of traffic redirect to canary deployment'
4343
required: false
4444
default: 0
45-
args:
46-
description: 'Arguments'
47-
required: false
4845
action:
4946
description: 'deploy/promote/reject'
5047
required: true

lib/input-parameters.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.githubToken = exports.forceDeployment = exports.args = exports.baselineAndCanaryReplicas = exports.versionSwitchBuffer = exports.routeMethod = exports.trafficSplitMethod = exports.deploymentStrategy = exports.canaryPercentage = exports.manifests = exports.imagePullSecrets = exports.containers = exports.namespace = void 0;
3+
exports.githubToken = exports.forceDeployment = exports.baselineAndCanaryReplicas = exports.versionSwitchBuffer = exports.routeMethod = exports.trafficSplitMethod = exports.deploymentStrategy = exports.canaryPercentage = exports.manifests = exports.imagePullSecrets = exports.containers = exports.namespace = void 0;
44
const core = require("@actions/core");
55
exports.namespace = core.getInput('namespace');
66
exports.containers = core.getInput('images').split('\n');
@@ -12,7 +12,6 @@ exports.trafficSplitMethod = core.getInput('traffic-split-method');
1212
exports.routeMethod = core.getInput('route-method');
1313
exports.versionSwitchBuffer = core.getInput('version-switch-buffer');
1414
exports.baselineAndCanaryReplicas = core.getInput('baseline-and-canary-replicas');
15-
exports.args = core.getInput('arguments');
1615
exports.forceDeployment = core.getInput('force').toLowerCase() == 'true';
1716
exports.githubToken = core.getInput("token");
1817
if (!exports.namespace) {

src/input-parameters.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const trafficSplitMethod: string = core.getInput('traffic-split-method');
1212
export const routeMethod: string = core.getInput('route-method');
1313
export const versionSwitchBuffer: string = core.getInput('version-switch-buffer');
1414
export const baselineAndCanaryReplicas: string = core.getInput('baseline-and-canary-replicas');
15-
export const args: string = core.getInput('arguments');
1615
export const forceDeployment: boolean = core.getInput('force').toLowerCase() == 'true';
1716
export const githubToken = core.getInput("token");
1817

0 commit comments

Comments
 (0)