@@ -54,12 +54,12 @@ jobs:
5454 # Useful for preserving browser caching.
5555 # We do make an exception for manual dispatch as that usually means we
5656 # want to re-built the page.
57- - name : Cache last used MacVim commit
57+ - name : Check cached version info to see if current commit has been built before
5858 id : restore-cache-macvim-commit
5959 if : ${{ github.event_name != 'workflow_dispatch' }}
6060 uses : actions/cache/restore@v3
6161 with :
62- path : ${{ github.workspace }}/macvim-last -commit.txt
62+ path : ${{ github.workspace }}/macvim-built -commit.txt
6363 key : macvim-built-commit-${{ steps.setup-env-vars.outputs.docs_commit}}-${{ steps.setup-env-vars.outputs.macvim_commit }}
6464
6565 - uses : actions/setup-python@v4
@@ -119,16 +119,16 @@ jobs:
119119
120120 # Deployment is good. Finish caching the commit info so we won't run
121121 # again until either this repo or MacVim got updated.
122- - name : Check MacVim last built commit
123- id : check-macvim-commit
122+ - name : Generate built commit version info marker
124123 if : ${{ needs.build.outputs.macvim_commit_cache_hit != 'true' && github.event_name != 'workflow_dispatch' }}
125124 run : |
126- date > "${GITHUB_WORKSPACE}/macvim-last-commit.txt"
125+ # This file is just a marker. Save the current date in case we are curious later when the last version was built.
126+ date > "${GITHUB_WORKSPACE}/macvim-built-commit.txt"
127127
128- - name : Cache last used MacVim commit
128+ - name : Update cache with commit version info
129129 id : save-cache-macvim-commit
130130 uses : actions/cache/save@v3
131131 if : ${{ needs.build.outputs.macvim_commit_cache_hit != 'true' && github.event_name != 'workflow_dispatch' }}
132132 with :
133- path : ${{ github.workspace }}/macvim-last -commit.txt
133+ path : ${{ github.workspace }}/macvim-built -commit.txt
134134 key : macvim-built-commit-${{ needs.build.outputs.docs_commit }}-${{ needs.build.outputs.macvim_commit }}
0 commit comments