7171 # If multiple jobs call actions/cache, then only one will get priority to create upon a cache miss.
7272 # We will only restore the cache by default (by calling actions/cache/restore) and let the
7373 # `go-mod-cache.yml` workflow handle the creation.
74- - uses : actions/cache/restore@v4
74+ - uses : actions/cache/restore@v5
7575 if : ${{ inputs.restore-module-cache-only == 'true' }}
7676 name : Cache Go Modules (Restore)
7777 id : cache-modules-restore
8686
8787 # If this is called, then it will create the cache entry upon a cache miss.
8888 # The cache is created after a cache miss, and after job completes successfully.
89- - uses : actions/cache@v4
89+ - uses : actions/cache@v5
9090 if : ${{ inputs.restore-module-cache-only != 'true' }}
9191 id : cache-modules
9292 name : Cache Go Modules
@@ -164,7 +164,7 @@ runs:
164164 # Only restore the build cache if:
165165 # 1. This is a merge queue event or
166166 # 2. If inputs.restore-build-cache-only == 'true'
167- - uses : actions/cache/restore@v4
167+ - uses : actions/cache/restore@v5
168168 name : Cache Go Build Outputs (restore)
169169 id : build-cache-restore
170170 if : ${{ inputs.only-modules == 'false' && (github.event_name == 'merge_group' || inputs.restore-build-cache-only == 'true') }}
@@ -180,7 +180,7 @@ runs:
180180 # ---
181181 # A negation of the above actions/cache/restore call.
182182 # This will create the cache entry upon a cache miss for the primary key.
183- - uses : actions/cache@v4
183+ - uses : actions/cache@v5
184184 if : ${{ inputs.only-modules == 'false' && (github.event_name != 'merge_group' && inputs.restore-build-cache-only == 'false') }}
185185 id : build-cache
186186 name : Cache Go Build Outputs
0 commit comments