mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	Chore: set default in action.yml
This commit is contained in:
		
							parent
							
								
									e96cb854f9
								
							
						
					
					
						commit
						6979495e69
					
				
					 2 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -10,11 +10,11 @@ Upload or download the assets of a release to a Forgejo instance.
 | 
			
		|||
 | 
			
		||||
| name | description | required | default |
 | 
			
		||||
| --- | --- | --- | --- |
 | 
			
		||||
| `url` | <p>URL of the Forgejo instance</p> | `false` | `${{ env.GITHUB_SERVER_URL }}` |
 | 
			
		||||
| `repo` | <p>owner/project relative to the URL</p> | `false` | `${{ github.repository }}` |
 | 
			
		||||
| `tag` | <p>Tag of the release</p> | `false` | `${{ github.ref_name }}` |
 | 
			
		||||
| `url` | <p>URL of the Forgejo instance</p> | `false` | `""` |
 | 
			
		||||
| `repo` | <p>owner/project relative to the URL</p> | `false` | `""` |
 | 
			
		||||
| `tag` | <p>Tag of the release</p> | `false` | `""` |
 | 
			
		||||
| `title` | <p>Title of the release (defaults to tag)</p> | `false` | `""` |
 | 
			
		||||
| `sha` | <p>SHA of the release</p> | `false` | `${{ github.sha }}` |
 | 
			
		||||
| `sha` | <p>SHA of the release</p> | `false` | `""` |
 | 
			
		||||
| `token` | <p>Forgejo application token</p> | `false` | `${{ secrets.GITHUB_TOKEN }}` |
 | 
			
		||||
| `release-dir` | <p>Directory in whichs release assets are uploaded or downloaded</p> | `true` | `""` |
 | 
			
		||||
| `release-notes` | <p>Release notes</p> | `false` | `""` |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,6 +16,7 @@ inputs:
 | 
			
		|||
    description: 'SHA of the release'
 | 
			
		||||
  token:
 | 
			
		||||
    description: 'Forgejo application token'
 | 
			
		||||
    default: '${{ secrets.GITHUB_TOKEN }}'
 | 
			
		||||
  release-dir:
 | 
			
		||||
    description: 'Directory in whichs release assets are uploaded or downloaded'
 | 
			
		||||
    required: true
 | 
			
		||||
| 
						 | 
				
			
			@ -89,9 +90,6 @@ 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