mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	trim refs/tags/ for short tag names
This commit is contained in:
		
							parent
							
								
									b818607d61
								
							
						
					
					
						commit
						12233a8d78
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -46,6 +46,9 @@ runs:
 | 
			
		|||
        export TAG="${{ inputs.tag }}"
 | 
			
		||||
        if test -z "$TAG"; then
 | 
			
		||||
          export TAG="${{ github.ref_name }}"
 | 
			
		||||
          # until https://code.forgejo.org/forgejo/runner/issues/9 is fixed
 | 
			
		||||
          # trim refs/tags/
 | 
			
		||||
          TAG=${TAG##refs/tags/}
 | 
			
		||||
        fi
 | 
			
		||||
        export TOKEN="${{ inputs.token }}"
 | 
			
		||||
        if test -z "$TOKEN"; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue