Skip to content

Report useful error when no files at all exist #284

@JLLeitschuh

Description

@JLLeitschuh

If this action is run and a user forgets to add the - uses: actions/checkout@v2 they get this uninformative error:

Run gradle/wrapper-validation-action@v1
  with:
    wrapper-directory: gradle/wrapper
    gradle-executable: gradlew
    allow-snapshots: true
    min-wrapper-count: 1
##[error]Gradle Wrapper Validation Failed!
  See https://github.com/gradle/wrapper-validation-action#reporting-failures
✗ Other validation errors:
  Expected to find at least 1 Gradle Wrapper JARs but got only 0

We should provide a more useful error when the GitHub action is running in the context of no files at all so that there is a more actionable step that users can take.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions