Skip to content

Commit

Permalink
release v2.2.0 generated by @lando/prepare-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 6, 2023
1 parent 5e0c2b5 commit 8ec99dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ module.exports = command => {
// parse string
command = parseArgsStringToArgv(command);
// validate a few things
if (command[0] !== 'lando' || command[1] !== 'setup') throw new Error('Setup command must begin with "lando setup"!');
if (command[0] !== 'lando' || command[1] !== 'setup') {
throw new Error(`Setup command must begin with "lando setup"! You tried to run "${command.join(' ')}"`);
}
// remove first lando because we only care about the args
command.shift();
return command;
Expand Down Expand Up @@ -43654,9 +43656,6 @@ const main = async () => {
// start by getting the inputs and stuff
const inputs = getInputs();

inputs.landoVersion = '3-dev';
inputs.setup = 'auto';

// show a warning if both version inputs are set
if (inputs.landoVersion && inputs.landoVersionFile) {
core.warning('Both lando-version and lando-version-file inputs are specified, only lando-version will be used');
Expand All @@ -43666,7 +43665,7 @@ const main = async () => {
// @NOTE: we use core.exportVariable because we want any GHA workflow that uses @lando/setup-lando to not need
// to handle their own downstream lando debugging. Of course they can if they want since they migth want something
// more targeted or wide than LANDO_DEBUG=1 eg LANDO_DEBUG="*" or LANDO_DEBUG="lando/core*"
// if (core.isDebug() || inputs.debug) core.exportVariable('LANDO_DEBUG', 1);
if (core.isDebug() || inputs.debug) core.exportVariable('LANDO_DEBUG', 1);

// determine lando version spec to install
const spec = inputs.landoVersion || getFileVersion(inputs.landoVersionFile) || 'stable';
Expand Down Expand Up @@ -43778,6 +43777,10 @@ const main = async () => {
}

// run v3 dep check
// @TODO: validate setup here?
// for v3 its just validate orchestratorBin run docker info?
// for v4 its run lando status
// remove dep check below when done
if (lmv === 'v3' && ['warn', 'error'].includes(inputs.dependencyCheck)) {
const docker = await exec.exec('docker', ['info'], {ignoreReturnCode: true});
const dockerCompose = await exec.exec('docker-compose', ['--version'], {ignoreReturnCode: true});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lando/setup-lando",
"description": "GitHub Action to setup Lando on GitHub Actions.",
"version": "2.1.0",
"version": "2.2.0",
"author": "Mike Pirog @pirog",
"main": "setup-lando.js",
"license": "GPL-3.0",
Expand Down

0 comments on commit 8ec99dc

Please sign in to comment.