In https://github.com/lycheeverse/lychee-action/issues/198, user @jasongitmail mentioned that the JSON output file was missing when setting --format json. In fact, we only create an output file in case the GitHub action run was not successful (exit code != 0). This PR changes that.
We now unconditionally write an output file. Since the file should automatically be cleaned up after the run, there should be no negative side effects. I've added a test to make sure this functionality doesn't break in the future.
In https://github.com/lycheeverse/lychee-action/issues/198, user @jasongitmail mentioned that the JSON output file was missing when setting
--format json
. In fact, we only create an output file in case the GitHub action run was not successful (exit code != 0). This PR changes that.We now unconditionally write an output file. Since the file should automatically be cleaned up after the run, there should be no negative side effects. I've added a test to make sure this functionality doesn't break in the future.