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

get-rocks-modified-and-build-scan-test-publish.yaml fails in empty repos #85

Open
DnPlas opened this issue Nov 7, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@DnPlas
Copy link
Contributor

DnPlas commented Nov 7, 2024

Bug Description

There seems to be an issue with the get-rocks-modified-and-build-scan-test-publish.yaml workflow. If the repository is empty (does not contain any rockcraft project), the workflow will return the following error:

# Run dorny/paths-filter@v2
  with:
    token: ***
    list-files: none
    initial-fetch-depth: 100
Error: Input required and not supplied: filters

This is caused because we are not passing any filters to the paths-filter action used in the workflow.

      - uses: dorny/paths-filter@v2
        id: filter
        with:
          filters: ${{ needs.get-all-rock-paths.outputs.paths}}

To Reproduce

Run the workflow in a repository that does not contain any rockcraft project

Environment

Same as the CI - the environment is actually set by the offending workflow

Relevant Log Output

Run dorny/paths-filter@v2
  with:
    token: ***
    list-files: none
    initial-fetch-depth: 100
Error: Input required and not supplied: filters

Additional Context

Caught this error here

@DnPlas DnPlas added the bug Something isn't working label Nov 7, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6535.

This message was autogenerated

@orfeas-k
Copy link
Contributor

orfeas-k commented Nov 8, 2024

Could be a duplicate of #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants