@@ -54,12 +54,12 @@ jobs:
54
54
# Useful for preserving browser caching.
55
55
# We do make an exception for manual dispatch as that usually means we
56
56
# 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
58
58
id : restore-cache-macvim-commit
59
59
if : ${{ github.event_name != 'workflow_dispatch' }}
60
60
uses : actions/cache/restore@v3
61
61
with :
62
- path : ${{ github.workspace }}/macvim-last -commit.txt
62
+ path : ${{ github.workspace }}/macvim-built -commit.txt
63
63
key : macvim-built-commit-${{ steps.setup-env-vars.outputs.docs_commit}}-${{ steps.setup-env-vars.outputs.macvim_commit }}
64
64
65
65
- uses : actions/setup-python@v4
@@ -119,16 +119,16 @@ jobs:
119
119
120
120
# Deployment is good. Finish caching the commit info so we won't run
121
121
# 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
124
123
if : ${{ needs.build.outputs.macvim_commit_cache_hit != 'true' && github.event_name != 'workflow_dispatch' }}
125
124
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"
127
127
128
- - name : Cache last used MacVim commit
128
+ - name : Update cache with commit version info
129
129
id : save-cache-macvim-commit
130
130
uses : actions/cache/save@v3
131
131
if : ${{ needs.build.outputs.macvim_commit_cache_hit != 'true' && github.event_name != 'workflow_dispatch' }}
132
132
with :
133
- path : ${{ github.workspace }}/macvim-last -commit.txt
133
+ path : ${{ github.workspace }}/macvim-built -commit.txt
134
134
key : macvim-built-commit-${{ needs.build.outputs.docs_commit }}-${{ needs.build.outputs.macvim_commit }}
0 commit comments