Compare commits

..

No commits in common. "main" and "v1.3.0" have entirely different histories.
main ... v1.3.0

2 changed files with 8 additions and 17 deletions

13
dist/index.js vendored
View File

@ -48144,10 +48144,6 @@ var crypto_js = __nccwpck_require__(4134);
function getIsTrue(v) {
const trueValue = ['true', 'True', 'TRUE']
return trueValue.includes(v)
}
async function run() {
try {
@ -48155,14 +48151,14 @@ async function run() {
const name = core.getInput("name")
const body = getReleaseBody(core.getInput("body"), core.getInput("body_path"))
const tag_name = core.getInput("tag_name")
const draft = getIsTrue(core.getInput("draft"))
const prerelease = getIsTrue(core.getInput("prerelease"))
const draft = Boolean(core.getInput("draft"))
const prerelease = Boolean(core.getInput("prerelease"))
const files = core.getInput("files")
const repository = core.getInput("repository")
const token = core.getInput("token")
const target_commitish = core.getInput("target_commitish")
const md5sum = getIsTrue(core.getInput("md5sum"))
const sha256sum = getIsTrue(core.getInput("sha256sum"))
const md5sum = core.getInput("md5sum")
const sha256sum = core.getInput("sha256sum")
const [owner, repo] = (repository).split("/")
@ -48269,7 +48265,6 @@ function paths(patterns) {
* @param {String} repo
* @param {Number} release_id
* @param {Array<String>} all_files
* @param {Map<String, Any>} additional parameters
*/
async function uploadFiles(client, owner, repo, release_id, all_files, params) {
params = params || {};

12
main.js
View File

@ -8,10 +8,6 @@ import gitea from "gitea-api";
import path from 'path';
import CryptoJS from 'crypto-js';
function getIsTrue(v) {
const trueValue = ['true', 'True', 'TRUE']
return trueValue.includes(v)
}
async function run() {
try {
@ -19,14 +15,14 @@ async function run() {
const name = core.getInput("name")
const body = getReleaseBody(core.getInput("body"), core.getInput("body_path"))
const tag_name = core.getInput("tag_name")
const draft = getIsTrue(core.getInput("draft"))
const prerelease = getIsTrue(core.getInput("prerelease"))
const draft = Boolean(core.getInput("draft"))
const prerelease = Boolean(core.getInput("prerelease"))
const files = core.getInput("files")
const repository = core.getInput("repository")
const token = core.getInput("token")
const target_commitish = core.getInput("target_commitish")
const md5sum = getIsTrue(core.getInput("md5sum"))
const sha256sum = getIsTrue(core.getInput("sha256sum"))
const md5sum = core.getInput("md5sum")
const sha256sum = core.getInput("sha256sum")
const [owner, repo] = (repository).split("/")