Skip to content

Commit 78078da

Browse files
authored
Update @actions/cache dependency and documentation (#549)
* deps: Update actions/cache dep, rebuild solution, update docs * docs: fix typo * deps: update jest dependencies and licenses * deps: fix vulnerable dependencies, rebuild solution * licenses: update
1 parent 5caaba6 commit 78078da

16 files changed

+91741
-45331
lines changed

.licenses/npm/@actions/cache.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/http-client-2.2.0.dep.yml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/abort-controller.dep.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@fastify/busboy.dep.yml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@types/node-16.11.25.dep.yml renamed to .licenses/npm/@types/node-16.18.58.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/psl.dep.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.licenses/npm/punycode.dep.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.licenses/npm/semver-6.3.0.dep.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.licenses/npm/semver-7.3.8.dep.yml renamed to .licenses/npm/semver-6.3.1.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/tough-cookie.dep.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.licenses/npm/ip-regex.dep.yml renamed to .licenses/npm/undici.dep.yml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,22 @@ steps:
161161
run: sbt package
162162
```
163163

164+
#### Cache segment restore timeout
165+
Usually, cache gets downloaded in multiple segments of fixed sizes. Sometimes, a segment download gets stuck, which causes the workflow job to be stuck. The cache segment download timeout [was introduced](https://github.com/actions/toolkit/tree/main/packages/cache#cache-segment-restore-timeout) to solve this issue as it allows the segment download to get aborted and hence allows the job to proceed with a cache miss. The default value of the cache segment download timeout is set to 10 minutes and can be customized by specifying an environment variable named `SEGMENT_DOWNLOAD_TIMEOUT_MINS` with a timeout value in minutes.
166+
167+
```yaml
168+
env:
169+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5'
170+
steps:
171+
- uses: actions/checkout@v3
172+
- uses: actions/setup-java@v3
173+
with:
174+
distribution: 'temurin'
175+
java-version: '17'
176+
cache: 'gradle'
177+
- run: ./gradlew build --no-daemon
178+
```
179+
164180
### Check latest
165181

166182
In the basic examples above, the `check-latest` flag defaults to `false`. When set to `false`, the action tries to first resolve a version of Java from the local tool cache on the runner. If unable to find a specific version in the cache, the action will download a version of Java. Use the default or set `check-latest` to `false` if you prefer a faster more consistent setup experience that prioritizes trying to use the cached versions at the expense of newer versions sometimes being available for download.

0 commit comments

Comments
 (0)