We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce607f0 commit 083b1edCopy full SHA for 083b1ed
index.js
@@ -425,8 +425,8 @@ async function run() {
425
core.debug(`The head commit is: ${commit}`);
426
}
427
} else if (context.eventName === 'release') {
428
- const tagName = context.payload.release.tag_name;
429
- ref = `refs/tags/${tagName}`;
+ const tagName = context.payload.release?.tag_name;
+ ref = !tagName ? ref : `refs/tags/${tagName}`;
430
core.debug(`The release ref is: ${ref}`);
431
432
0 commit comments