mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	Feat: set default token to ${{ secrets.GITHUB_TOKEN }}
This commit is contained in:
		
							parent
							
								
									73ed2a76a2
								
							
						
					
					
						commit
						b8d80407e0
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,6 @@ inputs:
 | 
			
		|||
    description: 'SHA of the release'
 | 
			
		||||
  token:
 | 
			
		||||
    description: 'Forgejo application token'
 | 
			
		||||
    required: true
 | 
			
		||||
  release-dir:
 | 
			
		||||
    description: 'Directory in whichs release assets are uploaded or downloaded'
 | 
			
		||||
    required: true
 | 
			
		||||
| 
						 | 
				
			
			@ -90,6 +89,9 @@ runs:
 | 
			
		|||
        export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
 | 
			
		||||
 | 
			
		||||
        export TOKEN="${{ inputs.token }}"
 | 
			
		||||
        if test -z "$TOKEN"; then
 | 
			
		||||
          export TOKEN="${{ secrets.GITHUB_TOKEN }}"
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
        export RELEASE_DIR="${{ inputs.release-dir }}"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue