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

Upload artifact fails if target directory doesn't exist #9

Closed
mpilquist opened this issue Jun 16, 2020 · 1 comment
Closed

Upload artifact fails if target directory doesn't exist #9

mpilquist opened this issue Jun 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mpilquist
Copy link

Ran in to this on fs2, where the build action runs test in certain sub-projects only. Hence, some subprojects don't have a target directory and the upload fails.

https://github.com/functional-streams-for-scala/fs2/actions/runs/137190325

@djspiewak djspiewak added the bug Something isn't working label Jun 16, 2020
@djspiewak
Copy link
Collaborator

Unfortunately, there's no way in general for this plugin to tell what target directories will or will not get generated, and there are no file existence predicates available in GitHub Actions. However, you can achieve this in the following way: https://github.com/djspiewak/sbt-github-actions/blob/3c40ebb75d0e3f170cb4e72417ef59effa12ef27/src/sbt-test/sbtghactions/non-existent-target/build.sbt#L10-L19

It's a little annoying, but it works and you really only have to do it once.

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