From 45ff009e1609b1980a7b29db7f4795a602e576ab Mon Sep 17 00:00:00 2001 From: cancio Date: Wed, 20 Mar 2024 02:38:45 +0000 Subject: [PATCH] deixa pra la --- .github/workflows/latex_build.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/latex_build.yml b/.github/workflows/latex_build.yml index 163b88e..78cfc95 100644 --- a/.github/workflows/latex_build.yml +++ b/.github/workflows/latex_build.yml @@ -24,23 +24,7 @@ jobs: uses: actions/github-script@v6 with: script: | - const axios = require('axios'); - const jq = require('jq-web'); - - const getArtifactUrl = async () => { - const response = await axios.get(`https://api.github.com/repos/${context.repo.owner}/${context.repo.repo}/actions/artifacts?per_page=100`, { - headers: { - 'Authorization': `token ${process.env.GITHUB_TOKEN}`, - 'Accept': 'application/vnd.github.v3+json' - } - }); - - const artifacts = jq.json(response.data, '[.artifacts[] | {name : .name, archive_download_url : .archive_download_url}]'); - const artifact = artifacts.find(artifact => artifact.name === 'main'); - return artifact ? artifact.archive_download_url : ''; - } - - const artifactUrl = await getArtifactUrl(); + const artifactUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${process.env.GITHUB_RUN_ID}`; const currentDate = new Date().toLocaleString("pt-BR", {timeZone: "America/Sao_Paulo"}); github.rest.issues.createComment({ issue_number: context.issue.number,