Giter Club home page Giter Club logo

Comments (2)

Seb33300 avatar Seb33300 commented on August 27, 2024 5

If this can help, a workaround for this is to use the dep and pass options to the command line:

  - uses: deployphp/action@v1
    with:
    dep: deploy host_name -o branch=main -o keep_releases=7

from action.

richardhj avatar richardhj commented on August 27, 2024

Github's action.yaml schema do not allow array-like input variables. Only scalars, not even booleans.

This is why

      options:
        keep_releases: 7

does not work.

This could work

      options: |
        keep_releases: 7

because it gets interpreted as string. But the key: value string then must get processed within the action --> here:

action/index.js

Line 118 in 2804049

let optionsArg = core.getInput('options')


IMHO using deploy host_name -o branch=main -o keep_releases=7 is just fine, no need for the options config. I would also vote for deprecating it.

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.