Skip to content

Commit

Permalink
fix: deploy should use util/bin + be consistent with variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Mar 8, 2024
1 parent bac0c8b commit e1d4720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const core = require('@actions/core');
const exec = require('@actions/exec');

const checkCLI = require('../util/bin');
const checkBin = require('../util/bin');

const verbose = core.getBooleanInput('verbose');

checkCLI('fastly', 'version').then(() => {
checkBin('fastly', 'version').then(() => {
let params = ['compute', 'build', '--non-interactive'];
if (verbose) params.push('--verbose');

Expand Down
4 changes: 2 additions & 2 deletions deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ const artifact = require('@actions/artifact');
const glob = require('@actions/glob');
const path = require('path');

const checkCLI = require('../util/cli');
const checkBin = require('../util/bin');

const projectDirectory = core.getInput('project_directory');
const serviceId = core.getInput('service_id');
const comment = core.getInput('comment');
const verbose = core.getBooleanInput('verbose');
const version = core.getInput('version');

checkCLI().then(async () => {
checkBin('fastly', 'version').then(async () => {
let params = ['compute', 'deploy', '--non-interactive'];
if (serviceId !== 'default') params.push('--service-id=' + serviceId);
if (verbose) params.push('--verbose');
Expand Down

0 comments on commit e1d4720

Please sign in to comment.