You've already forked gitea-release-action
mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2025-08-11 11:44:36 +07:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0611a9a1a0 | |||
69c9a2be62 | |||
91415bf0a8 | |||
f6b3ef8321 |
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -40967,7 +40967,7 @@ async function createOrGetRelease(client, owner, repo, body) {
|
|||||||
name: body.name || release.name,
|
name: body.name || release.name,
|
||||||
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
|
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
|
||||||
tag_name: body.tag_name || release.tag_name,
|
tag_name: body.tag_name || release.tag_name,
|
||||||
target_commitish: body.target_commitish || release.target_commitish,
|
target_commitish: target_commitish,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return release
|
return release
|
||||||
@ -41022,7 +41022,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
|
|||||||
await client.repository.repoDeleteReleaseAttachment({
|
await client.repository.repoDeleteReleaseAttachment({
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
id: id,
|
id: release_id,
|
||||||
attachmentId: attachment.id,
|
attachmentId: attachment.id,
|
||||||
})
|
})
|
||||||
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
||||||
|
6
main.js
6
main.js
@ -5,7 +5,7 @@ import * as glob from "glob";
|
|||||||
import core from "@actions/core";
|
import core from "@actions/core";
|
||||||
|
|
||||||
import gitea from "gitea-api";
|
import gitea from "gitea-api";
|
||||||
import path from 'path'
|
import path from 'path';
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
@ -80,7 +80,7 @@ async function createOrGetRelease(client, owner, repo, body) {
|
|||||||
name: body.name || release.name,
|
name: body.name || release.name,
|
||||||
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
|
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
|
||||||
tag_name: body.tag_name || release.tag_name,
|
tag_name: body.tag_name || release.tag_name,
|
||||||
target_commitish: body.target_commitish || release.target_commitish,
|
target_commitish: target_commitish,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return release
|
return release
|
||||||
@ -135,7 +135,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
|
|||||||
await client.repository.repoDeleteReleaseAttachment({
|
await client.repository.repoDeleteReleaseAttachment({
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
id: id,
|
id: release_id,
|
||||||
attachmentId: attachment.id,
|
attachmentId: attachment.id,
|
||||||
})
|
})
|
||||||
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
||||||
|
Reference in New Issue
Block a user