-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix: Lychee output to file (fixes #214) #215
Conversation
Thanks for the PR. Did you test it already on a fork? |
I have not tested it, unfortunately. I haven't found the time yet, sorry. |
This should then also address #216. |
I'm going to follow up with I'm not 100% sure how to test a forked GHA. |
@LilDrunkenSmurf You should be able to run the new version with output/print commands in an action targeting your branch with the changes.
|
Thanks for the contribution. I merged the changes and they should be live in |
I plan to do a release of the action very soon. Then we should also have the fix with a proper release version. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action) | action | minor | `v1.8.0` -> `v1.9.0` | --- ### Release Notes <details> <summary>lycheeverse/lychee-action (lycheeverse/lychee-action)</summary> ### [`v1.9.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.9.0): Version 1.9.0 [Compare Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.8.0...v1.9.0) #### What's Changed - Document the current directory for the cache argument example by [@​theredfish](https://togithub.com/theredfish) in [lycheeverse/lychee-action#193 - Add `*.rst` glob pattern to defaults by [@​kdeldycke](https://togithub.com/kdeldycke) in [lycheeverse/lychee-action#197 - Automatically pass Github token by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#196 - Always create output file; not only on error by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#199 - Bump actions/checkout from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [lycheeverse/lychee-action#208 - add documentation on using the param when testing local files (as in… by [@​tgaff](https://togithub.com/tgaff) in [lycheeverse/lychee-action#211 - fix: Lychee output to file (fixes [#​214](https://togithub.com/lycheeverse/lychee-action/issues/214)) by [@​LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) in [lycheeverse/lychee-action#215 - Add integration test for custom output paths ([#​215](https://togithub.com/lycheeverse/lychee-action/issues/215)) by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#217 - Add integration tests for absolute output path and `--dump` by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#218 #### New Contributors - [@​theredfish](https://togithub.com/theredfish) made their first contribution in [lycheeverse/lychee-action#193 - [@​kdeldycke](https://togithub.com/kdeldycke) made their first contribution in [lycheeverse/lychee-action#197 - [@​tgaff](https://togithub.com/tgaff) made their first contribution in [lycheeverse/lychee-action#211 - [@​LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) made their first contribution in [lycheeverse/lychee-action#215 **Full Changelog**: lycheeverse/lychee-action@v1...v1.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/mykso/myks). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2In0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action) | action | minor | `v1.8.0` -> `v1.9.0` | `v1.9.1` | --- ### Release Notes <details> <summary>lycheeverse/lychee-action (lycheeverse/lychee-action)</summary> ### [`v1.9.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.9.0): Version 1.9.0 [Compare Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.8.0...v1.9.0) #### What's Changed - Document the current directory for the cache argument example by [@​theredfish](https://togithub.com/theredfish) in [lycheeverse/lychee-action#193 - Add `*.rst` glob pattern to defaults by [@​kdeldycke](https://togithub.com/kdeldycke) in [lycheeverse/lychee-action#197 - Automatically pass Github token by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#196 - Always create output file; not only on error by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#199 - Bump actions/checkout from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [lycheeverse/lychee-action#208 - add documentation on using the param when testing local files (as in… by [@​tgaff](https://togithub.com/tgaff) in [lycheeverse/lychee-action#211 - fix: Lychee output to file (fixes [#​214](https://togithub.com/lycheeverse/lychee-action/issues/214)) by [@​LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) in [lycheeverse/lychee-action#215 - Add integration test for custom output paths ([#​215](https://togithub.com/lycheeverse/lychee-action/issues/215)) by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#217 - Add integration tests for absolute output path and `--dump` by [@​mre](https://togithub.com/mre) in [lycheeverse/lychee-action#218 #### New Contributors - [@​theredfish](https://togithub.com/theredfish) made their first contribution in [lycheeverse/lychee-action#193 - [@​kdeldycke](https://togithub.com/kdeldycke) made their first contribution in [lycheeverse/lychee-action#197 - [@​tgaff](https://togithub.com/tgaff) made their first contribution in [lycheeverse/lychee-action#211 - [@​LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) made their first contribution in [lycheeverse/lychee-action#215 **Full Changelog**: lycheeverse/lychee-action@v1...v1.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am every weekday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Currently it evaluates the first
if [ ! -f "${LYCHEE_TMP}" ]; then
, however it skips the second one that's essentially the same check.This combines them into a single if/else statement so it should start being evaluated.
Fixes #214