mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	update documentation to use <action>@v4
This commit is contained in:
		@@ -35,9 +35,9 @@ If you are using separate jobs to create and save your cache(s) to be reused by
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
  - uses: actions/checkout@v3
 | 
			
		||||
  - uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
  - uses: actions/cache/restore@v3
 | 
			
		||||
  - uses: actions/cache/restore@v4
 | 
			
		||||
    id: cache
 | 
			
		||||
    with:
 | 
			
		||||
      path: path/to/dependencies
 | 
			
		||||
@@ -64,12 +64,12 @@ In case of multi-module projects, where the built artifact of one project needs
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
  - uses: actions/checkout@v3
 | 
			
		||||
  - uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
  - name: Build
 | 
			
		||||
    run: /build-parent-module.sh
 | 
			
		||||
 | 
			
		||||
  - uses: actions/cache/save@v3
 | 
			
		||||
  - uses: actions/cache/save@v4
 | 
			
		||||
    id: cache
 | 
			
		||||
    with:
 | 
			
		||||
      path: path/to/dependencies
 | 
			
		||||
@@ -80,9 +80,9 @@ steps:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
  - uses: actions/checkout@v3
 | 
			
		||||
  - uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
  - uses: actions/cache/restore@v3
 | 
			
		||||
  - uses: actions/cache/restore@v4
 | 
			
		||||
    id: cache
 | 
			
		||||
    with:
 | 
			
		||||
      path: path/to/dependencies
 | 
			
		||||
@@ -107,9 +107,9 @@ To fail if there is no cache hit for the primary key, leave `restore-keys` empty
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
  - uses: actions/checkout@v3
 | 
			
		||||
  - uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
  - uses: actions/cache/restore@v3
 | 
			
		||||
  - uses: actions/cache/restore@v4
 | 
			
		||||
    id: cache
 | 
			
		||||
    with:
 | 
			
		||||
      path: path/to/dependencies
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user