How to reset cache for github actions?

I need to do the following in my Dockerfile:

RUN echo “PWD is: $PWD”
RUN echo $(ls)

However the github actions tell me its #CACHED so I don’t see any output from it. How do I reset the cachce? I’ve tried creating a new workflow but it don’t help.

1 Like

How is that Dockerfile used in your workflow? Caching depends on that a lot.

However, those commands are extremely like to be cached by Docker, and also usually shouldn’t be in a Dockerfile except possibly for debugging, because they don’t contribute to the resulting image.

You might benefit from this previous discussion here How to clear cache in GitHub Actions? - #7 by allinws