mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 15:26:23 +07:00 
			
		
		
		
	#StandWithUkraine
This commit is contained in:
		| @ -17,6 +17,9 @@ | ||||
|   <a href="https://twitter.com/setup_php" title="setup-php twitter"><img alt="setup-php twitter" src="https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555"></a> | ||||
|   <a href="https://status.setup-php.com" title="setup-php status"><img alt="setup-php status" src="https://img.shields.io/badge/status-subscribe-28A745?logo=statuspage&logoColor=28A745&labelColor=555555"></a> | ||||
| </p> | ||||
| <p align="center"> | ||||
|   <a href="https://setup-php.com/support-ukraine" title="#StandWithUkraine"><img alt="#StandWithUkraine" src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg"></a> | ||||
| </p> | ||||
|  | ||||
| Setup PHP with required extensions, php.ini configuration, code-coverage support and various tools like composer in [GitHub Actions](https://github.com/features/actions "GitHub Actions"). This action gives you a cross-platform interface to set up the PHP environment you need to test your application. Refer to [Usage](#memo-usage "How to use this") section and [examples](#examples "Examples of use") to see how to use this. | ||||
|  | ||||
|  | ||||
							
								
								
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -516,7 +516,7 @@ const extensions = __importStar(__nccwpck_require__(390)); | ||||
| const tools = __importStar(__nccwpck_require__(740)); | ||||
| const utils = __importStar(__nccwpck_require__(918)); | ||||
| async function getScript(os) { | ||||
|     const url = 'https://setup-php.com/sponsor'; | ||||
|     const url = 'https://setup-php.com/support-ukraine'; | ||||
|     const filename = os + (await utils.scriptExtension(os)); | ||||
|     const script_path = path_1.default.join(__dirname, '../src/scripts', filename); | ||||
|     const run_path = script_path.replace(os, 'run'); | ||||
| @ -538,8 +538,8 @@ async function getScript(os) { | ||||
|     if (ini_values_csv) { | ||||
|         script += await config.addINIValues(ini_values_csv, os); | ||||
|     } | ||||
|     script += '\n' + (await utils.stepLog(`Sponsor setup-php`, os)); | ||||
|     script += '\n' + (await utils.addLog('$tick', 'setup-php', url, os)); | ||||
|     script += '\n' + (await utils.stepLog(`#StandWithUkraine`, os)); | ||||
|     script += '\n' + (await utils.addLog('$tick', 'read-more', url, os)); | ||||
|     fs_1.default.writeFileSync(run_path, script, { mode: 0o755 }); | ||||
|     return run_path; | ||||
| } | ||||
|  | ||||
| @ -14,7 +14,7 @@ import * as utils from './utils'; | ||||
|  * @param os | ||||
|  */ | ||||
| export async function getScript(os: string): Promise<string> { | ||||
|   const url = 'https://setup-php.com/sponsor'; | ||||
|   const url = 'https://setup-php.com/support-ukraine'; | ||||
|   const filename = os + (await utils.scriptExtension(os)); | ||||
|   const script_path = path.join(__dirname, '../src/scripts', filename); | ||||
|   const run_path = script_path.replace(os, 'run'); | ||||
| @ -40,8 +40,8 @@ export async function getScript(os: string): Promise<string> { | ||||
|   if (ini_values_csv) { | ||||
|     script += await config.addINIValues(ini_values_csv, os); | ||||
|   } | ||||
|   script += '\n' + (await utils.stepLog(`Sponsor setup-php`, os)); | ||||
|   script += '\n' + (await utils.addLog('$tick', 'setup-php', url, os)); | ||||
|   script += '\n' + (await utils.stepLog(`#StandWithUkraine`, os)); | ||||
|   script += '\n' + (await utils.addLog('$tick', 'read-more', url, os)); | ||||
|  | ||||
|   fs.writeFileSync(run_path, script, {mode: 0o755}); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur