You've already forked gitea-release-action
mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2025-07-23 10:39:02 +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,
|
||||
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
|
||||
@ -41022,7 +41022,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
|
||||
await client.repository.repoDeleteReleaseAttachment({
|
||||
owner: owner,
|
||||
repo: repo,
|
||||
id: id,
|
||||
id: release_id,
|
||||
attachmentId: attachment.id,
|
||||
})
|
||||
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 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
|
||||
@ -135,7 +135,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
|
||||
await client.repository.repoDeleteReleaseAttachment({
|
||||
owner: owner,
|
||||
repo: repo,
|
||||
id: id,
|
||||
id: release_id,
|
||||
attachmentId: attachment.id,
|
||||
})
|
||||
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
||||
|
Reference in New Issue
Block a user