From 2eea4be4428870f96159a4638b50a134dece778b Mon Sep 17 00:00:00 2001 From: Metin San Date: Sun, 28 Apr 2024 10:00:42 +0200 Subject: [PATCH] Update workflow so that joss paper only compiles if its modified --- .github/workflows/draft-pdf.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml index e4c5c62..d3f5980 100644 --- a/.github/workflows/draft-pdf.yml +++ b/.github/workflows/draft-pdf.yml @@ -1,4 +1,9 @@ -on: [push, workflow_dispatch] +on: + push: + paths: ["paper/**"] + pull_request: + paths: ["paper/**"] + workflow_dispatch: jobs: paper: @@ -20,4 +25,4 @@ jobs: # This is the output path where Pandoc will write the compiled # PDF. Note, this should be the same directory as the input # paper.md - path: paper/paper.pdf \ No newline at end of file + path: paper/paper.pdf