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

action: add -p option mkdir images and fix cache #191

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Apr 16, 2024

This can cause the action to fail on a runner on which the /images folder already exists.

Quick and (slightly) dirty fix for my needs to run LVH on hosted arm64 bare metal runners.

@mtardy mtardy force-pushed the pr/mtardy/fix-action-idempotent branch 7 times, most recently from 1e26550 to 0a304e6 Compare April 16, 2024 17:22
mtardy added 2 commits April 16, 2024 19:30
Previously it was writting to the root always under /images which could
be problematic running on some GHA runners.

Signed-off-by: Mahe Tardy <[email protected]>
The path was wrong and thus the cache was never saved.

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy force-pushed the pr/mtardy/fix-action-idempotent branch from 0a304e6 to ae7d223 Compare April 16, 2024 17:32
@mtardy mtardy marked this pull request as ready for review April 16, 2024 17:34
@mtardy mtardy requested a review from brb April 16, 2024 17:34
@mtardy mtardy changed the title action: add -p option mkdir images action: add -p option mkdir images and fix cache Apr 16, 2024
@mtardy mtardy requested a review from kkourt April 16, 2024 17:35
Otherwise the cache is not used since it stores the compressed version.

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy force-pushed the pr/mtardy/fix-action-idempotent branch from 3b2b49c to e7ff724 Compare April 17, 2024 08:48
@brb brb merged commit c7fd9bc into main Apr 17, 2024
2 checks passed
@brb brb deleted the pr/mtardy/fix-action-idempotent branch April 17, 2024 08:54
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.

2 participants