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

fix: Lychee output to file (fixes #214) #215

Merged
merged 1 commit into from
Jan 5, 2024
Merged

fix: Lychee output to file (fixes #214) #215

merged 1 commit into from
Jan 5, 2024

Conversation

joryirving
Copy link
Contributor

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

@mre
Copy link
Member

mre commented Dec 27, 2023

Thanks for the PR. Did you test it already on a fork?
Also, I wonder if we need to add another test for the behavior or not.

@joryirving
Copy link
Contributor Author

I have not tested it, unfortunately. I haven't found the time yet, sorry.

@tooomm
Copy link
Contributor

tooomm commented Dec 29, 2023

This should then also address #216.

@joryirving
Copy link
Contributor Author

I'm going to follow up with I'm not 100% sure how to test a forked GHA.

@tooomm
Copy link
Contributor

tooomm commented Jan 2, 2024

@LilDrunkenSmurf You should be able to run the new version with output/print commands in an action targeting your branch with the changes.
Maybe try this in your fork (I don't think it's required to release an action to use it):

uses: LilDrunkenSmurf/lychee-action@output-fix

@mre mre merged commit a428289 into lycheeverse:master Jan 5, 2024
3 checks passed
@mre
Copy link
Member

mre commented Jan 5, 2024

Thanks for the contribution. I merged the changes and they should be live in @master in a bit.

@mre
Copy link
Member

mre commented Jan 5, 2024

I plan to do a release of the action very soon. Then we should also have the fix with a proper release version.

renovate bot added a commit to mykso/myks that referenced this pull request Jan 5, 2024
[![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
[@&#8203;theredfish](https://togithub.com/theredfish) in
[lycheeverse/lychee-action#193
- Add `*.rst` glob pattern to defaults by
[@&#8203;kdeldycke](https://togithub.com/kdeldycke) in
[lycheeverse/lychee-action#197
- Automatically pass Github token by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#196
- Always create output file; not only on error by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#199
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[lycheeverse/lychee-action#208
- add documentation on using the param when testing local files (as in…
by [@&#8203;tgaff](https://togithub.com/tgaff) in
[lycheeverse/lychee-action#211
- fix: Lychee output to file (fixes
[#&#8203;214](https://togithub.com/lycheeverse/lychee-action/issues/214))
by [@&#8203;LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) in
[lycheeverse/lychee-action#215
- Add integration test for custom output paths
([#&#8203;215](https://togithub.com/lycheeverse/lychee-action/issues/215))
by [@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#217
- Add integration tests for absolute output path and `--dump` by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#218

#### New Contributors

- [@&#8203;theredfish](https://togithub.com/theredfish) made their first
contribution in
[lycheeverse/lychee-action#193
- [@&#8203;kdeldycke](https://togithub.com/kdeldycke) made their first
contribution in
[lycheeverse/lychee-action#197
- [@&#8203;tgaff](https://togithub.com/tgaff) made their first
contribution in
[lycheeverse/lychee-action#211
- [@&#8203;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>
@joryirving joryirving deleted the output-fix branch January 6, 2024 01:24
renovate bot added a commit to Unleash/unleash that referenced this pull request Jan 12, 2024
[![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
[@&#8203;theredfish](https://togithub.com/theredfish) in
[lycheeverse/lychee-action#193
- Add `*.rst` glob pattern to defaults by
[@&#8203;kdeldycke](https://togithub.com/kdeldycke) in
[lycheeverse/lychee-action#197
- Automatically pass Github token by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#196
- Always create output file; not only on error by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#199
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[lycheeverse/lychee-action#208
- add documentation on using the param when testing local files (as in…
by [@&#8203;tgaff](https://togithub.com/tgaff) in
[lycheeverse/lychee-action#211
- fix: Lychee output to file (fixes
[#&#8203;214](https://togithub.com/lycheeverse/lychee-action/issues/214))
by [@&#8203;LilDrunkenSmurf](https://togithub.com/LilDrunkenSmurf) in
[lycheeverse/lychee-action#215
- Add integration test for custom output paths
([#&#8203;215](https://togithub.com/lycheeverse/lychee-action/issues/215))
by [@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#217
- Add integration tests for absolute output path and `--dump` by
[@&#8203;mre](https://togithub.com/mre) in
[lycheeverse/lychee-action#218

#### New Contributors

- [@&#8203;theredfish](https://togithub.com/theredfish) made their first
contribution in
[lycheeverse/lychee-action#193
- [@&#8203;kdeldycke](https://togithub.com/kdeldycke) made their first
contribution in
[lycheeverse/lychee-action#197
- [@&#8203;tgaff](https://togithub.com/tgaff) made their first
contribution in
[lycheeverse/lychee-action#211
- [@&#8203;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to --dump to file?
3 participants