commit f0ebb56cf141664a880ac38b94fdac5c398be73b parent 40bad1aa3e473178dab0ecd1c831d8ee6eff3a5e Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com> Date: Mon, 14 Apr 2025 11:35:45 +0900 Create PRbuild.yaml Diffstat:
| A | .github/workflows/PRbuild.yaml | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/PRbuild.yaml b/.github/workflows/PRbuild.yaml @@ -0,0 +1,23 @@ +name: compile LaTeX when PR update + +on: + push: + pull_request: + types: [opened, edited] + +jops: + build: + name: Build + runs-on: self-hosted + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: compile latex document + uses: ./.github/actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: comment pdf to PR + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + URL: ${{ github.event.pull_request.html_url }} + run: gh pr comment -F ./main.pdf "${URL}"