Skip to content

Commit

Permalink
Merge pull request #3 from filipecancio/feat-1-bot-link
Browse files Browse the repository at this point in the history
Corrigindo o bot
  • Loading branch information
filipecancio authored Mar 20, 2024
2 parents bcd8b9e + 45ff009 commit 5960c77
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/latex_build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Build LaTeX document
on:
push:
branches:
- '*'
- '!main'
on: pull_request

jobs:
build_latex:
Expand All @@ -22,3 +18,17 @@ jobs:
with:
name: main
path: article/main.pdf
- name: Display structure of downloaded files
run: ls -R
- name: comment PR
uses: actions/github-script@v6
with:
script: |
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,
owner: context.repo.owner,
repo: context.repo.repo,
body: `👋 Aqui está uma nova versão do artigo em PDF: [link](${artifactUrl}). Lançado em ${currentDate}.`
})

0 comments on commit 5960c77

Please sign in to comment.