Skip to content

Commit

Permalink
deixa pra la
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecancio committed Mar 20, 2024
1 parent 2cfae5f commit 45ff009
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/latex_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 45ff009

Please sign in to comment.