Skip to content

Replace usage of arrays when there is a single item in the dependency list #128

Open
@yeikel

Description

@yeikel

What problem are you trying to solve?

Improve readability of the workflow

What precondition(s) should be checked before applying this recipe?

There is one single item within the needs block and an array is used

The recipe should not be applied if there are multiple entries

  docker-build:
    needs: [ maven, slack ]
    uses: ...

Describe the situation before applying the recipe

  docker-build:
    needs: [ maven ]
    uses: ...

Describe the situation after applying the recipe

  docker-build:
    needs: maven
    uses: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Recipes Wanted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions