mirror of
				https://github.moeyy.xyz/https://github.com/docker/setup-buildx-action
				synced 2025-10-31 16:08:56 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			635 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			635 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as core from '@actions/core';
 | |
| 
 | |
| export const IsPost = !!process.env['STATE_isPost'];
 | |
| export const IsDebug = !!process.env['STATE_isDebug'];
 | |
| export const builderName = process.env['STATE_builderName'] || '';
 | |
| export const containerName = process.env['STATE_containerName'] || '';
 | |
| 
 | |
| export function setDebug(debug: string) {
 | |
|   core.saveState('isDebug', debug);
 | |
| }
 | |
| 
 | |
| export function setBuilderName(builderName: string) {
 | |
|   core.saveState('builderName', builderName);
 | |
| }
 | |
| 
 | |
| export function setContainerName(containerName: string) {
 | |
|   core.saveState('containerName', containerName);
 | |
| }
 | |
| 
 | |
| if (!IsPost) {
 | |
|   core.saveState('isPost', 'true');
 | |
| }
 | 
