Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore nested GHA inputs #79

Open
bschilder opened this issue Sep 19, 2023 · 0 comments
Open

Explore nested GHA inputs #79

bschilder opened this issue Sep 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request GitHub Actions Issue occurring on GitHub Actions

Comments

@bschilder
Copy link
Collaborator

bschilder commented Sep 19, 2023

As the rworkflows actions gets more comprehensive, the parameter list continue to grow. It might be better to nest these arguments in some way.

Ways to do this:

  1. Create separate subactions that users can supply inputs to at each step. Break Actions report into steps #4
  2. Nest inputs within the main rworkflow action: e.g.

in the workflow

 steps:
    - uses: neurogenomics/rworkflows@master
      with:
        run_bioccheck: ${{ false }}
           opt_1: ${{ false }}
           opt_2: 'myoption'

or maybe:

 steps:
    - uses: neurogenomics/rworkflows@master
      with:
        run_bioccheck.run: ${{ false }}
        run_bioccheck.opt_1: ${{ false }}
        run_bioccheck.opt_2: 'myoption'

in the action:

inputs.run_bioccheck.opt_2

Not sure if this syntax is supported by GHA though.

Documentation

@bschilder bschilder self-assigned this Sep 19, 2023
@bschilder bschilder added enhancement New feature or request GitHub Actions Issue occurring on GitHub Actions labels Sep 19, 2023
@bschilder bschilder moved this from Todo to In Progress in Project Management Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GitHub Actions Issue occurring on GitHub Actions
Projects
Status: In Progress
Development

No branches or pull requests

1 participant