Giter VIP home page Giter VIP logo

Comments (8)

antonmedv avatar antonmedv commented on June 14, 2024

This is strange.

As

let p = execa.command(`php ${dep} --ansi -v ${cmd}`)
not using split any more. It should be as in normal shell.

from action.

jonnitto avatar jonnitto commented on June 14, 2024

I've the dep command deploy ${{ env.BRANCH_NAME }} --no-interaction --composer_auth ${{ env.composer_auth }}

composer_auth is something like http-basic.composer.domain.tld USER PASSWORD and is added via option('composer_auth', null, InputOption::VALUE_OPTIONAL, 'Add a composer authentification configuration');

The error is still Too many arguments, expected arguments "command" "stage".

https://github.com/jonnitto/Uberspace.Deployer/blob/main/config.php#L9

from action.

antonmedv avatar antonmedv commented on June 14, 2024

Add quotas around “ ${{ env.composer_auth }}”.

from action.

jonnitto avatar jonnitto commented on June 14, 2024

This was before. Fails the same way

from action.

antonmedv avatar antonmedv commented on June 14, 2024

I don’t see how it’s the same issue.

from action.

jonnitto avatar jonnitto commented on June 14, 2024

This is the complete error message:

In ArgvInput.php line 171:

  [Symfony\Component\Console\Exception\RuntimeException]     
  Too many arguments, expected arguments "command" "stage".  


Exception trace:
  at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Input/ArgvInput.php:171
 Symfony\Component\Console\Input\ArgvInput->parseArgument() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Input/ArgvInput.php:82
 Symfony\Component\Console\Input\ArgvInput->parse() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Input/Input.php:55
 Symfony\Component\Console\Input\Input->bind() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Command/Command.php:214
 Symfony\Component\Console\Command\Command->run() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Application.php:924
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/src/Console/Application.php:133
 Deployer\Console\Application->doRunCommand() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Application.php:265
 Symfony\Component\Console\Application->doRun() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/vendor/symfony/console/Application.php:141
 Symfony\Component\Console\Application->run() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/src/Deployer.php:326
 Deployer\Deployer::run() at phar:///home/runner/work/RepoName/RepoName/deployer.phar/bin/dep:136
 require() at /home/runner/work/RepoName/RepoName/deployer.phar:4

deploy [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] [<stage>]

Error: Failed: dep deploy staging --no-interaction --composer_auth "***"

from action.

antonmedv avatar antonmedv commented on June 14, 2024

This is really strange as

dep deploy staging --no-interaction --composer_auth "***"

It should work here as well.

Please try to use index.js locally to test if execa.command works as expected.

from action.

rzibert avatar rzibert commented on June 14, 2024

I have the same issue since I'm using multiple custom options for deploy.

[Symfony\Component\Console\Exception\RuntimeException]
Too many arguments to "deploy" command, expected arguments "stage".

Is there any solution for this ?

from action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.