What is the best way to preserve data in actions?

My repository is very large, and with every action having to checkout, and downloading the entire repository again takes a long time, what better way to not have to download again and keep the data?

Thank you.

1 Like

In your workflow, if you choose Github hosted runner to run your jobs, a fresh instance will be distributed to each job . It could not preserve your source code. 

If it is possible, I would suggest you use self-hosted runner. You need to install it in a local machine . And after a workflow run checkout the repo, it will store in the runner work folder until you clean it. 

runner workfolder.png

Please refer to this document to know more about self-hosted runner.  https://help.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners