mirror of
https://github.com/softprops/action-gh-release
synced 2026-10-01 01:01:32 +00:00
Allow override of target_commitish for updating
This commit is contained in:
1 parent
60ec4e5f6b
commit
892e2fa87d
3 files changed
+26
-16
No files matched your search
+6
-1
@@ -167,7 +167,12 @@ export const release = async (
|
||||
});
|
||||
|
||||
const release_id = existingRelease.data.id;
|
||||
const target_commitish = existingRelease.data.target_commitish;
|
||||
let target_commitish: string;
|
||||
if (config.input_target_commitish) {
|
||||
target_commitish = config.input_target_commitish;
|
||||
} else {
|
||||
target_commitish = existingRelease.data.target_commitish;
|
||||
}
|
||||
const tag_name = tag;
|
||||
const name = config.input_name || tag;
|
||||
const body = `${existingRelease.data.body}\n${releaseBody(config)}`;
|
||||
|
||||
Reference in new issue
Block a user