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

Remove allure report history by timestamp #33

Open
Foxtel-chenfan opened this issue Aug 9, 2022 · 3 comments
Open

Remove allure report history by timestamp #33

Foxtel-chenfan opened this issue Aug 9, 2022 · 3 comments

Comments

@Foxtel-chenfan
Copy link

Foxtel-chenfan commented Aug 9, 2022

Hi team @simple-elf , can you provide us a method to remove report history by folder created time?

entrypoint.sh
38 ls | sort -n | head -n -$((${INPUT_KEEP_REPORTS}-2)) | xargs rm -rv;

this method support us to remove the allure report history by sort -n, but I need to remove the history folder by report generated timestamp. Could your team help to change this shell cmd to ls -rt | head -n -$((${INPUT_KEEP_REPORTS}-2)) | xargs rm -rv or something like this, or build a new method for us to use?

@palubatonau01
Copy link

I faced with the same issue. I'd be glad if this feature will be added.

@JulioPazini
Copy link

Any news about this situation? It would be really nice to have this option.

@mgrybyk
Copy link

mgrybyk commented Aug 21, 2023

Hello,
I'm not sure if this action is still maintained. I may suggest using https://github.com/marketplace/actions/allure-report-with-history-per-branch

I'm going to implement the cleanup feature in next week or two.

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

No branches or pull requests

4 participants