Compare commits

..

4 Commits

Author SHA1 Message Date
Sampark Sharma
cfa7ba9007 Merge branch 'main' into Phantsure-patch-1 2022-12-23 11:49:41 +05:30
Sankalp Kotewar
7d403ca5c3 Merge branch 'main' into Phantsure-patch-1 2022-12-21 19:54:57 +05:30
Sampark Sharma
8a9ab1ae8c Update codeql.yml 2022-12-08 16:26:18 +05:30
Sampark Sharma
f10295073f Upgrade codeql to v2 2022-12-08 16:23:05 +05:30
3 changed files with 3 additions and 2 deletions

View File

@@ -245,6 +245,7 @@ Following are some of the known practices/workarounds which community has used t
- [Cache segment restore timeout](./tips-and-workarounds.md#cache-segment-restore-timeout)
- [Update a cache](./tips-and-workarounds.md#update-a-cache)
- [Use cache across feature branches](./tips-and-workarounds.md#use-cache-across-feature-branches)
- [Improving cache restore performance on Windows/Using cross-os caching](./tips-and-workarounds.md#improving-cache-restore-performance-on-windows-using-cross-os-caching)
- [Force deletion of caches overriding default cache eviction policy](./tips-and-workarounds.md#force-deletion-of-caches-overriding-default-cache-eviction-policy)
#### Windows environment variables

View File

@@ -120,7 +120,7 @@ steps:
#### Reusing primary key and restored key in the save action
Usually you may want to use same `key` in both `actions/cache/restore` and `actions/cache/save` action. To achieve this, use `outputs` from the restore action to reuse the same primary key (or the key of the cache that was restored).
Usually you may want to use same `key` in both actions/cache/restore` and `actions/cache/save` action. To achieve this, use `outputs` from the restore action to reuse the same primary key (or the key of the cache that was restored).
#### Using restore action outputs to make save action behave just like the cache action

View File

@@ -54,7 +54,7 @@ Case 1: Where an user would want to reuse the key as it is
```yaml
uses: actions/cache/save@v3
with:
key: ${{ steps.restore-cache.outputs.key }}
key: steps.restore-cache.output.key
```
Case 2: Where the user would want to re-evaluate the key