mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Remove commas from workflow name
Commas are explicitly disallowed in cache keys, so remove any from workflow name when generating cache key.
This commit is contained in:
		@@ -17,4 +17,10 @@ describe('cacheUtils-utils', () => {
 | 
			
		||||
            expect(posixHash).toBe(windowsHash)
 | 
			
		||||
        })
 | 
			
		||||
    })
 | 
			
		||||
    describe('sanitizes workflow name in cache key', () => {
 | 
			
		||||
        it('with comma', () => {
 | 
			
		||||
            const cacheKey = cacheUtils.getCacheKeyForJob("Workflow, with,commas", "JOB_ID")
 | 
			
		||||
            expect(cacheKey).toBe('workflow withcommas-JOB_ID')
 | 
			
		||||
        })
 | 
			
		||||
    })
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user