From 0611a9a1a0282cf3d871dc0c9ce03f5d72ddaef2 Mon Sep 17 00:00:00 2001 From: Akkuman Date: Wed, 21 Feb 2024 17:10:17 +0800 Subject: [PATCH] fix: update target_commitish of release --- dist/index.js | 2 +- main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 22a93b3..0a84377 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40967,7 +40967,7 @@ async function createOrGetRelease(client, owner, repo, body) { name: body.name || release.name, prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease, tag_name: body.tag_name || release.tag_name, - target_commitish: body.target_commitish || release.target_commitish, + target_commitish: target_commitish, } }) return release diff --git a/main.js b/main.js index 0f04bcd..9744378 100644 --- a/main.js +++ b/main.js @@ -5,7 +5,7 @@ import * as glob from "glob"; import core from "@actions/core"; import gitea from "gitea-api"; -import path from 'path' +import path from 'path'; async function run() { try { @@ -80,7 +80,7 @@ async function createOrGetRelease(client, owner, repo, body) { name: body.name || release.name, prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease, tag_name: body.tag_name || release.tag_name, - target_commitish: body.target_commitish || release.target_commitish, + target_commitish: target_commitish, } }) return release