Do full checkout in lint workflow to rebuild new Docker images (#119858)
From https://github.com/pytorch/pytorch/pull/119575, using `fetch-depth: 1` didn't work for `calculate-docker-image` when rebuilding a new one. Specifically, doing a full checkout is needed for `git rev-parse HEAD~:.ci/docker` to get the Docker tag.
This shows up as a trunk failure after the recent Docker image update https://hud.pytorch.org/pytorch/pytorch/commit/507db1767525653dcf8dba80768198b19bd5e9f9
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119858
Approved by: https://github.com/PaliC, https://github.com/clee2000, https://github.com/malfet