diff --git a/dist/index.js b/dist/index.js index 137c914..1380f2e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -48170,6 +48170,7 @@ async function run() { BASE: `${server_url}/api/v1`, WITH_CREDENTIALS: true, TOKEN: token, + ENCODE_PATH: encodeURIComponent, }); const response = await createOrGetRelease(gitea_client, owner, repo, { @@ -48210,7 +48211,7 @@ async function createOrGetRelease(client, owner, repo, body) { let release = await client.repository.repoGetReleaseByTag({ owner: owner, repo: repo, - tag: encodeURIComponent(body.tag_name), + tag: body.tag_name, }) const release_id = release.id; let target_commitish = release.target_commitish; diff --git a/main.js b/main.js index 503faf0..656886a 100644 --- a/main.js +++ b/main.js @@ -34,6 +34,7 @@ async function run() { BASE: `${server_url}/api/v1`, WITH_CREDENTIALS: true, TOKEN: token, + ENCODE_PATH: encodeURIComponent, }); const response = await createOrGetRelease(gitea_client, owner, repo, { @@ -74,7 +75,7 @@ async function createOrGetRelease(client, owner, repo, body) { let release = await client.repository.repoGetReleaseByTag({ owner: owner, repo: repo, - tag: encodeURIComponent(body.tag_name), + tag: body.tag_name, }) const release_id = release.id; let target_commitish = release.target_commitish;