-
Notifications
You must be signed in to change notification settings - Fork 541
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
Add allow-not-found input argument #301
base: main
Are you sure you want to change the base?
Conversation
@robherley As of now, there still seem to be proponents of this feature. Is there a chance that this is still going to be included or are there other plans currently? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DaUs3103 Thanks for reviewing! I wasn't sure how to interpret your comment, should I update the README.md and CHANGELOG.md files as well? |
4c276b4
to
a0b83ea
Compare
@croemheld I think he's saying update the README because any new option that gets added needs to be documented so users know it's an available option. |
a0b83ea
to
2ef3ffc
Compare
13e115e
to
49b3eab
Compare
@DaUs3103 @rrundle-dave Sorry for the long delay, I rebased on top of the latest changes and updated the README.md file with the new input argument as well. |
Closes #42
This PR adds the
allow-not-found
input argument todownload-artifact
that, when set totrue
, will not fail the action when an artifact with the specifiedname
input argument is not found.If the artifact is not found, the output of
download-path
of the action will contain an empty string instead of the would-be download path. This can be checked in the subsequent step via${{ steps.<id>.outputs.download-path != '' }}
as can be seen in the updated workflow test.yml file. Additionally, a warning is printed viacore.warning
if the artifact is not found whileallow-not-found
is set to true.If
allow-not-found
is set to false (default behavior), the action behaves as it did before this PR.