mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-28 16:40:02 +08:00 
			
		
		
		
	 500e0ee5b3
			
		
	
	
		500e0ee5b3
		
			
		
	
	
	
	
		
			
			The setup-gradle action tries to get a short-lived access token given the supplied Develocity access key. This key can be passed either with the `DEVELOCITY_ACCESS_KEY` env var or via the `develocity-access-key` input parameter. If a token can be retrieved, then the `DEVELOCITY_ACCESS_KEY` env var will be set to the token. Otherwise the `DEVELOCITY_ACCESS_KEY` will be set to a blank string, to avoid a leak. --------- Co-authored-by: daz <daz@gradle.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			626 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			626 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| cd sources
 | |
| 
 | |
| case "$1" in
 | |
|     all)
 | |
|         npm clean-install
 | |
|         npm run all
 | |
|         ;;
 | |
|     act)
 | |
|         # Build and copy outputs to the dist directory
 | |
|         npm install
 | |
|         npm run build
 | |
|         cd ..
 | |
|         cp -r sources/dist .
 | |
|         # Run act
 | |
|         $@
 | |
|         # Revert the changes to the dist directory
 | |
|         git checkout -- dist
 | |
|         ;;
 | |
|     init-scripts)
 | |
|         cd test/init-scripts
 | |
|         ./gradlew check
 | |
|         ;;
 | |
|     dist)
 | |
|         npm install
 | |
|         npm run build
 | |
|         cd ..
 | |
|         cp -r sources/dist .
 | |
|         ;;
 | |
|     *)
 | |
|         npm install
 | |
|         npm run build
 | |
|         ;;
 | |
| esac
 |