Commit 1e0ddcb 1 parent 124ea0f commit 1e0ddcb Copy full SHA for 1e0ddcb
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,11 +90,14 @@ export async function run(
90
90
let buildOptions = null ;
91
91
92
92
// If we are pushing directly to the target branch then just build a release without draft flag
93
- if ( context . eventName === 'push' && context . ref === `refs/heads/${ target } ` ) {
93
+ if ( context . eventName === 'push' && ( context . ref === `refs/heads/${ target } ` || context . ref_type === 'tag' ) ) {
94
94
// Make a final release because context is master workflow
95
95
buildOptions = {
96
96
draft : false ,
97
- tags : { sha : context . sha } ,
97
+ tags : {
98
+ sha : context . sha ,
99
+ ...( context . ref_type === 'tag' && { tag : context . ref_name } ) ,
100
+ } ,
98
101
} ;
99
102
} else if ( context . eventName !== 'pull_request' ) {
100
103
// Make sure the only events now are Pull Requests
You can’t perform that action at this time.
0 commit comments