forked from mirrors/action-gh-release
Print commit usage
This commit is contained in:
parent
892e2fa87d
commit
ffd48b0175
2 changed files with 15 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -168,7 +168,13 @@ export const release = async (
|
||||||
|
|
||||||
const release_id = existingRelease.data.id;
|
const release_id = existingRelease.data.id;
|
||||||
let target_commitish: string;
|
let target_commitish: string;
|
||||||
if (config.input_target_commitish) {
|
if (
|
||||||
|
config.input_target_commitish &&
|
||||||
|
config.input_target_commitish !== existingRelease.data.target_commitish
|
||||||
|
) {
|
||||||
|
console.log(
|
||||||
|
`Updating commit from "${existingRelease.data.target_commitish}" to "${config.input_target_commitish}"`
|
||||||
|
);
|
||||||
target_commitish = config.input_target_commitish;
|
target_commitish = config.input_target_commitish;
|
||||||
} else {
|
} else {
|
||||||
target_commitish = existingRelease.data.target_commitish;
|
target_commitish = existingRelease.data.target_commitish;
|
||||||
|
@ -199,7 +205,13 @@ export const release = async (
|
||||||
const draft = config.input_draft;
|
const draft = config.input_draft;
|
||||||
const prerelease = config.input_prerelease;
|
const prerelease = config.input_prerelease;
|
||||||
const target_commitish = config.input_target_commitish;
|
const target_commitish = config.input_target_commitish;
|
||||||
console.log(`👩🏭 Creating new GitHub release for tag ${tag_name}...`);
|
let commitMessage: string = "";
|
||||||
|
if (target_commitish) {
|
||||||
|
commitMessage = ` using "${target_commitish}"`;
|
||||||
|
}
|
||||||
|
console.log(
|
||||||
|
`👩🏭 Creating new GitHub release for tag ${tag_name}${commitMessage}...`
|
||||||
|
);
|
||||||
try {
|
try {
|
||||||
let release = await releaser.createRelease({
|
let release = await releaser.createRelease({
|
||||||
owner,
|
owner,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue