mirror of
				https://gitea.com/actions/cache.git
				synced 2025-11-04 07:47:08 +00:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
			yacaovsnc/
			...
			v4.0.1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					ab5e6d0c87 | ||
| 
						 | 
					89c7d86c71 | ||
| 
						 | 
					d2c84da363 | ||
| 
						 | 
					37e7d4eb16 | ||
| 
						 | 
					a18323f504 | ||
| 
						 | 
					a2ed59d39b | ||
| 
						 | 
					dc88ab52d7 | ||
| 
						 | 
					1d78355196 | 
							
								
								
									
										28
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					name: Release new action version
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  release:
 | 
				
			||||||
 | 
					    types: [released]
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					    inputs:
 | 
				
			||||||
 | 
					      TAG_NAME:
 | 
				
			||||||
 | 
					        description: 'Tag name that the major tag will point to'
 | 
				
			||||||
 | 
					        required: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					env:
 | 
				
			||||||
 | 
					  TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
 | 
				
			||||||
 | 
					permissions:
 | 
				
			||||||
 | 
					  contents: write
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  update_tag:
 | 
				
			||||||
 | 
					    name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      name: releaseNewActionVersion
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - name: Update the ${{ env.TAG_NAME }} tag
 | 
				
			||||||
 | 
					      id: update-major-tag
 | 
				
			||||||
 | 
					      uses: actions/publish-action@v0.3.0
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        source-tag: ${{ env.TAG_NAME }}
 | 
				
			||||||
 | 
					        slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
 | 
				
			||||||
							
								
								
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
name: "@actions/cache"
 | 
					name: "@actions/cache"
 | 
				
			||||||
version: 3.2.3
 | 
					version: 3.2.4
 | 
				
			||||||
type: npm
 | 
					type: npm
 | 
				
			||||||
summary: Actions cache lib
 | 
					summary: Actions cache lib
 | 
				
			||||||
homepage: https://github.com/actions/toolkit/tree/main/packages/cache
 | 
					homepage: https://github.com/actions/toolkit/tree/main/packages/cache
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							@@ -95,7 +95,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: Cache Primes
 | 
					    - name: Cache Primes
 | 
				
			||||||
      id: cache-primes
 | 
					      id: cache-primes
 | 
				
			||||||
      uses: actions/cache@v3
 | 
					      uses: actions/cache@v4
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: prime-numbers
 | 
					        path: prime-numbers
 | 
				
			||||||
        key: ${{ runner.os }}-primes
 | 
					        key: ${{ runner.os }}-primes
 | 
				
			||||||
@@ -126,7 +126,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: Restore cached Primes
 | 
					    - name: Restore cached Primes
 | 
				
			||||||
      id: cache-primes-restore
 | 
					      id: cache-primes-restore
 | 
				
			||||||
      uses: actions/cache/restore@v3
 | 
					      uses: actions/cache/restore@v4
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: |
 | 
					        path: |
 | 
				
			||||||
          path/to/dependencies
 | 
					          path/to/dependencies
 | 
				
			||||||
@@ -137,7 +137,7 @@ jobs:
 | 
				
			|||||||
    .
 | 
					    .
 | 
				
			||||||
    - name: Save Primes
 | 
					    - name: Save Primes
 | 
				
			||||||
      id: cache-primes-save
 | 
					      id: cache-primes-save
 | 
				
			||||||
      uses: actions/cache/save@v3
 | 
					      uses: actions/cache/save@v4
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: |
 | 
					        path: |
 | 
				
			||||||
          path/to/dependencies
 | 
					          path/to/dependencies
 | 
				
			||||||
@@ -191,7 +191,7 @@ A cache key can include any of the contexts, functions, literals, and operators
 | 
				
			|||||||
For example, using the [`hashFiles`](https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles) function allows you to create a new cache when dependencies change.
 | 
					For example, using the [`hashFiles`](https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles) function allows you to create a new cache when dependencies change.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
  - uses: actions/cache@v3
 | 
					  - uses: actions/cache@v4
 | 
				
			||||||
    with:
 | 
					    with:
 | 
				
			||||||
      path: |
 | 
					      path: |
 | 
				
			||||||
        path/to/dependencies
 | 
					        path/to/dependencies
 | 
				
			||||||
@@ -209,7 +209,7 @@ Additionally, you can use arbitrary command output in a cache key, such as a dat
 | 
				
			|||||||
      echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
 | 
					      echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
 | 
				
			||||||
    shell: bash
 | 
					    shell: bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - uses: actions/cache@v3
 | 
					  - uses: actions/cache@v4
 | 
				
			||||||
    with:
 | 
					    with:
 | 
				
			||||||
      path: path/to/dependencies
 | 
					      path: path/to/dependencies
 | 
				
			||||||
      key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/lockfiles') }}
 | 
					      key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/lockfiles') }}
 | 
				
			||||||
@@ -231,7 +231,7 @@ Example:
 | 
				
			|||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - uses: actions/checkout@v3
 | 
					  - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - uses: actions/cache@v3
 | 
					  - uses: actions/cache@v4
 | 
				
			||||||
    id: cache
 | 
					    id: cache
 | 
				
			||||||
    with:
 | 
					    with:
 | 
				
			||||||
      path: path/to/dependencies
 | 
					      path: path/to/dependencies
 | 
				
			||||||
@@ -263,7 +263,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Cache Primes
 | 
					      - name: Cache Primes
 | 
				
			||||||
        id: cache-primes
 | 
					        id: cache-primes
 | 
				
			||||||
        uses: actions/cache@v3
 | 
					        uses: actions/cache@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          path: prime-numbers
 | 
					          path: prime-numbers
 | 
				
			||||||
          key: primes
 | 
					          key: primes
 | 
				
			||||||
@@ -274,7 +274,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Cache Numbers
 | 
					      - name: Cache Numbers
 | 
				
			||||||
        id: cache-numbers
 | 
					        id: cache-numbers
 | 
				
			||||||
        uses: actions/cache@v3
 | 
					        uses: actions/cache@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          path: numbers
 | 
					          path: numbers
 | 
				
			||||||
          key: primes
 | 
					          key: primes
 | 
				
			||||||
@@ -290,7 +290,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Cache Primes
 | 
					      - name: Cache Primes
 | 
				
			||||||
        id: cache-primes
 | 
					        id: cache-primes
 | 
				
			||||||
        uses: actions/cache@v3
 | 
					        uses: actions/cache@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          path: prime-numbers
 | 
					          path: prime-numbers
 | 
				
			||||||
          key: primes
 | 
					          key: primes
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										150
									
								
								RELEASES.md
									
									
									
									
									
								
							
							
						
						
									
										150
									
								
								RELEASES.md
									
									
									
									
									
								
							@@ -1,77 +1,50 @@
 | 
				
			|||||||
# Releases
 | 
					# Releases
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.0
 | 
					### 4.0.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Updated minimum runner version support from node 12 -> node 16
 | 
					- Updated `isGhes` check
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.1
 | 
					### 4.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added support for caching from GHES 3.5.
 | 
					- Updated minimum runner version support from node 12 -> node 20
 | 
				
			||||||
- Fixed download issue for files > 2GB during restore.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.2
 | 
					### 3.3.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added support for dynamic cache size cap on GHES.
 | 
					- Updates @actions/cache to v3.2.3 to fix accidental mutated path arguments to `getCacheVersion` [actions/toolkit#1378](https://github.com/actions/toolkit/pull/1378)
 | 
				
			||||||
 | 
					- Additional audit fixes of npm package(s)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.3
 | 
					### 3.3.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
 | 
					- Fixes bug with Azure SDK causing blob downloads to get stuck.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.4
 | 
					### 3.3.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixed tar creation error while trying to create tar with path as `~/` home folder on `ubuntu-latest`. ([issue](https://github.com/actions/cache/issues/689))
 | 
					- Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.5
 | 
					### 3.3.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit. ([PR](https://github.com/actions/cache/pull/834))
 | 
					- Added option to lookup cache without downloading it.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.6
 | 
					### 3.2.6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixed [#809](https://github.com/actions/cache/issues/809) - zstd -d: no such file or directory error
 | 
					- Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners.
 | 
				
			||||||
- Fixed [#833](https://github.com/actions/cache/issues/833) - cache doesn't work with github workspace directory
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.7
 | 
					### 3.2.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour.
 | 
					- Added fix to prevent from setting MYSYS environment variable globally.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.8
 | 
					### 3.2.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fix zstd not working for windows on gnu tar in issues [#888](https://github.com/actions/cache/issues/888) and [#891](https://github.com/actions/cache/issues/891).
 | 
					- Added option to fail job on cache miss.
 | 
				
			||||||
- Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.9
 | 
					### 3.2.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Enhanced the warning message for cache unavailablity in case of GHES.
 | 
					- Support cross os caching on Windows as an opt-in feature.
 | 
				
			||||||
 | 
					- Fix issue with symlink restoration on Windows for cross-os caches.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.0.10
 | 
					### 3.2.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fix a bug with sorting inputs.
 | 
					- Reverted the changes made in 3.2.1 to use gnu tar and zstd by default on windows.
 | 
				
			||||||
- Update definition for restore-keys in README.md
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.0.11
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Update toolkit version to 3.0.5 to include `@actions/core@^1.10.0`
 | 
					 | 
				
			||||||
- Update `@actions/cache` to use updated `saveState` and `setOutput` functions from `@actions/core@^1.10.0`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.1.0-beta.1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Update `@actions/cache` on windows to use gnu tar and zstd by default and fallback to bsdtar and zstd if gnu tar is not available. ([issue](https://github.com/actions/cache/issues/984))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.1.0-beta.2
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Added support for fallback to gzip to restore old caches on windows.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.1.0-beta.3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Bug fixes for bsdtar fallback if gnutar not available and gzip fallback if cache saved using old cache action on windows.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.2.0-beta.1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Added two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 3.2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Released the two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.1
 | 
					### 3.2.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -79,44 +52,75 @@
 | 
				
			|||||||
- Added support for fallback to gzip to restore old caches on windows.
 | 
					- Added support for fallback to gzip to restore old caches on windows.
 | 
				
			||||||
- Added logs for cache version in case of a cache miss.
 | 
					- Added logs for cache version in case of a cache miss.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.2
 | 
					### 3.2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Reverted the changes made in 3.2.1 to use gnu tar and zstd by default on windows.
 | 
					- Released the two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.3
 | 
					### 3.2.0-beta.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Support cross os caching on Windows as an opt-in feature.
 | 
					- Added two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache.
 | 
				
			||||||
- Fix issue with symlink restoration on Windows for cross-os caches.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.4
 | 
					### 3.1.0-beta.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added option to fail job on cache miss.
 | 
					- Bug fixes for bsdtar fallback if gnutar not available and gzip fallback if cache saved using old cache action on windows.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.5
 | 
					### 3.1.0-beta.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added fix to prevent from setting MYSYS environment variable globally.
 | 
					- Added support for fallback to gzip to restore old caches on windows.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.2.6
 | 
					### 3.1.0-beta.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners.
 | 
					- Update `@actions/cache` on windows to use gnu tar and zstd by default and fallback to bsdtar and zstd if gnu tar is not available. ([issue](https://github.com/actions/cache/issues/984))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.3.0
 | 
					### 3.0.11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Added option to lookup cache without downloading it.
 | 
					- Update toolkit version to 3.0.5 to include `@actions/core@^1.10.0`
 | 
				
			||||||
 | 
					- Update `@actions/cache` to use updated `saveState` and `setOutput` functions from `@actions/core@^1.10.0`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.3.1
 | 
					### 3.0.10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck.
 | 
					- Fix a bug with sorting inputs.
 | 
				
			||||||
 | 
					- Update definition for restore-keys in README.md
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.3.2
 | 
					### 3.0.9
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixes bug with Azure SDK causing blob downloads to get stuck.
 | 
					- Enhanced the warning message for cache unavailablity in case of GHES.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 3.3.3
 | 
					### 3.0.8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Updates @actions/cache to v3.2.3 to fix accidental mutated path arguments to `getCacheVersion` [actions/toolkit#1378](https://github.com/actions/toolkit/pull/1378)
 | 
					- Fix zstd not working for windows on gnu tar in issues [#888](https://github.com/actions/cache/issues/888) and [#891](https://github.com/actions/cache/issues/891).
 | 
				
			||||||
- Additional audit fixes of npm package(s)
 | 
					- Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 4.0.0
 | 
					### 3.0.7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Updated minimum runner version support from node 12 -> node 20
 | 
					- Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Fixed [#809](https://github.com/actions/cache/issues/809) - zstd -d: no such file or directory error
 | 
				
			||||||
 | 
					- Fixed [#833](https://github.com/actions/cache/issues/833) - cache doesn't work with github workspace directory
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit. ([PR](https://github.com/actions/cache/pull/834))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Fixed tar creation error while trying to create tar with path as `~/` home folder on `ubuntu-latest`. ([issue](https://github.com/actions/cache/issues/689))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Added support for dynamic cache size cap on GHES.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Added support for caching from GHES 3.5.
 | 
				
			||||||
 | 
					- Fixed download issue for files > 2GB during restore.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Updated minimum runner version support from node 12 -> node 16
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							@@ -707,7 +707,10 @@ function assertDefined(name, value) {
 | 
				
			|||||||
exports.assertDefined = assertDefined;
 | 
					exports.assertDefined = assertDefined;
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
					    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
				
			||||||
    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
					    const hostname = ghUrl.hostname.trimEnd().toUpperCase();
 | 
				
			||||||
 | 
					    const isGitHubHost = hostname === 'GITHUB.COM';
 | 
				
			||||||
 | 
					    const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
 | 
				
			||||||
 | 
					    return !isGitHubHost && !isGheHost;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
//# sourceMappingURL=cacheUtils.js.map
 | 
					//# sourceMappingURL=cacheUtils.js.map
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -707,7 +707,10 @@ function assertDefined(name, value) {
 | 
				
			|||||||
exports.assertDefined = assertDefined;
 | 
					exports.assertDefined = assertDefined;
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
					    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
				
			||||||
    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
					    const hostname = ghUrl.hostname.trimEnd().toUpperCase();
 | 
				
			||||||
 | 
					    const isGitHubHost = hostname === 'GITHUB.COM';
 | 
				
			||||||
 | 
					    const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
 | 
				
			||||||
 | 
					    return !isGitHubHost && !isGheHost;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
//# sourceMappingURL=cacheUtils.js.map
 | 
					//# sourceMappingURL=cacheUtils.js.map
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							@@ -707,7 +707,10 @@ function assertDefined(name, value) {
 | 
				
			|||||||
exports.assertDefined = assertDefined;
 | 
					exports.assertDefined = assertDefined;
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
					    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
				
			||||||
    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
					    const hostname = ghUrl.hostname.trimEnd().toUpperCase();
 | 
				
			||||||
 | 
					    const isGitHubHost = hostname === 'GITHUB.COM';
 | 
				
			||||||
 | 
					    const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
 | 
				
			||||||
 | 
					    return !isGitHubHost && !isGheHost;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
//# sourceMappingURL=cacheUtils.js.map
 | 
					//# sourceMappingURL=cacheUtils.js.map
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -707,7 +707,10 @@ function assertDefined(name, value) {
 | 
				
			|||||||
exports.assertDefined = assertDefined;
 | 
					exports.assertDefined = assertDefined;
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
					    const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
 | 
				
			||||||
    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
					    const hostname = ghUrl.hostname.trimEnd().toUpperCase();
 | 
				
			||||||
 | 
					    const isGitHubHost = hostname === 'GITHUB.COM';
 | 
				
			||||||
 | 
					    const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');
 | 
				
			||||||
 | 
					    return !isGitHubHost && !isGheHost;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
//# sourceMappingURL=cacheUtils.js.map
 | 
					//# sourceMappingURL=cacheUtils.js.map
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										16
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										16
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -1,12 +1,12 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "4.0.0",
 | 
					  "version": "4.0.1",
 | 
				
			||||||
  "lockfileVersion": 2,
 | 
					  "lockfileVersion": 2,
 | 
				
			||||||
  "requires": true,
 | 
					  "requires": true,
 | 
				
			||||||
  "packages": {
 | 
					  "packages": {
 | 
				
			||||||
    "": {
 | 
					    "": {
 | 
				
			||||||
      "name": "cache",
 | 
					      "name": "cache",
 | 
				
			||||||
      "version": "4.0.0",
 | 
					      "version": "4.0.1",
 | 
				
			||||||
      "license": "MIT",
 | 
					      "license": "MIT",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@actions/cache": "^3.2.3",
 | 
					        "@actions/cache": "^3.2.3",
 | 
				
			||||||
@@ -36,9 +36,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@actions/cache": {
 | 
					    "node_modules/@actions/cache": {
 | 
				
			||||||
      "version": "3.2.3",
 | 
					      "version": "3.2.4",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.3.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.4.tgz",
 | 
				
			||||||
      "integrity": "sha512-m8KvmcD+JxSLOfNUXuBF2jL0Lp+co/Fhbf0NTt0M9lz61WnXRdqpIGrOvTRZmKIl+7HaHil6kGE3fkEfrKQCQA==",
 | 
					      "integrity": "sha512-RuHnwfcDagtX+37s0ZWy7clbOfnZ7AlDJQ7k/9rzt2W4Gnwde3fa/qjSjVuz4vLcLIpc7fUob27CMrqiWZytYA==",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@actions/core": "^1.10.0",
 | 
					        "@actions/core": "^1.10.0",
 | 
				
			||||||
        "@actions/exec": "^1.0.1",
 | 
					        "@actions/exec": "^1.0.1",
 | 
				
			||||||
@@ -9533,9 +9533,9 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/cache": {
 | 
					    "@actions/cache": {
 | 
				
			||||||
      "version": "3.2.3",
 | 
					      "version": "3.2.4",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.3.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.4.tgz",
 | 
				
			||||||
      "integrity": "sha512-m8KvmcD+JxSLOfNUXuBF2jL0Lp+co/Fhbf0NTt0M9lz61WnXRdqpIGrOvTRZmKIl+7HaHil6kGE3fkEfrKQCQA==",
 | 
					      "integrity": "sha512-RuHnwfcDagtX+37s0ZWy7clbOfnZ7AlDJQ7k/9rzt2W4Gnwde3fa/qjSjVuz4vLcLIpc7fUob27CMrqiWZytYA==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "@actions/core": "^1.10.0",
 | 
					        "@actions/core": "^1.10.0",
 | 
				
			||||||
        "@actions/exec": "^1.0.1",
 | 
					        "@actions/exec": "^1.0.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "4.0.0",
 | 
					  "version": "4.0.1",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "Cache dependencies and build outputs",
 | 
					  "description": "Cache dependencies and build outputs",
 | 
				
			||||||
  "main": "dist/restore/index.js",
 | 
					  "main": "dist/restore/index.js",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user