2.1.0
This commit is contained in:
		
							parent
							
								
									0d3c327d15
								
							
						
					
					
						commit
						ec0ba8651f
					
				@ -1,5 +1,8 @@
 | 
				
			|||||||
# Changelog
 | 
					# Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## [2.1.0] - 2020-08-10
 | 
				
			||||||
 | 
					- Strip refs/heads/ from the input tag [#23](https://github.com/svenstaro/upload-release-action/pull/23) (thanks @OmarEmaraDev)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## [2.0.0] - 2020-07-03
 | 
					## [2.0.0] - 2020-07-03
 | 
				
			||||||
- Add `prerelease` input parameter. Setting this marks the created release as a pre-release.
 | 
					- Add `prerelease` input parameter. Setting this marks the created release as a pre-release.
 | 
				
			||||||
- Add `release_name` input parameter. Setting this explicitly sets the title of the release.
 | 
					- Add `release_name` input parameter. Setting this explicitly sets the title of the release.
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -2263,7 +2263,7 @@ function run() {
 | 
				
			|||||||
            // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
 | 
					            // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
 | 
				
			||||||
            const token = core.getInput('repo_token', { required: true });
 | 
					            const token = core.getInput('repo_token', { required: true });
 | 
				
			||||||
            const file = core.getInput('file', { required: true });
 | 
					            const file = core.getInput('file', { required: true });
 | 
				
			||||||
            const tag = core.getInput('tag', { required: true }).replace('refs/tags/', '');
 | 
					            const tag = core.getInput('tag', { required: true }).replace('refs/tags/', '').replace('refs/heads/', '');
 | 
				
			||||||
            const file_glob = core.getInput('file_glob') == 'true' ? true : false;
 | 
					            const file_glob = core.getInput('file_glob') == 'true' ? true : false;
 | 
				
			||||||
            const overwrite = core.getInput('overwrite') == 'true' ? true : false;
 | 
					            const overwrite = core.getInput('overwrite') == 'true' ? true : false;
 | 
				
			||||||
            const prerelease = core.getInput('prerelease') == 'true' ? true : false;
 | 
					            const prerelease = core.getInput('prerelease') == 'true' ? true : false;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "upload-release-action",
 | 
					  "name": "upload-release-action",
 | 
				
			||||||
  "version": "2.0.0",
 | 
					  "version": "2.1.0",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "Upload files to a GitHub release",
 | 
					  "description": "Upload files to a GitHub release",
 | 
				
			||||||
  "main": "lib/main.js",
 | 
					  "main": "lib/main.js",
 | 
				
			||||||
 | 
				
			|||||||
@ -104,7 +104,10 @@ async function run(): Promise<void> {
 | 
				
			|||||||
    // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
 | 
					    // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
 | 
				
			||||||
    const token = core.getInput('repo_token', {required: true})
 | 
					    const token = core.getInput('repo_token', {required: true})
 | 
				
			||||||
    const file = core.getInput('file', {required: true})
 | 
					    const file = core.getInput('file', {required: true})
 | 
				
			||||||
    const tag = core.getInput('tag', {required: true}).replace('refs/tags/', '').replace('refs/heads/', '')
 | 
					    const tag = core
 | 
				
			||||||
 | 
					      .getInput('tag', {required: true})
 | 
				
			||||||
 | 
					      .replace('refs/tags/', '')
 | 
				
			||||||
 | 
					      .replace('refs/heads/', '')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const file_glob = core.getInput('file_glob') == 'true' ? true : false
 | 
					    const file_glob = core.getInput('file_glob') == 'true' ? true : false
 | 
				
			||||||
    const overwrite = core.getInput('overwrite') == 'true' ? true : false
 | 
					    const overwrite = core.getInput('overwrite') == 'true' ? true : false
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user