From a44ea43fddd269fb79d23a707e85327dd76c42a1 Mon Sep 17 00:00:00 2001 From: Kathryn Doering Date: Wed, 8 Dec 2021 13:19:34 -0500 Subject: [PATCH] be more specific about when to run gh actions avoid running gh actions when gh actions or documentation changes (to the extent possible) --- .github/workflows/call-calc-coverage.yml | 18 +++++++++++++++--- .github/workflows/call-doc-and-style-r.yml | 6 ++++++ .github/workflows/call-r-cmd-check.yml | 6 ++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/call-calc-coverage.yml b/.github/workflows/call-calc-coverage.yml index 3977c94c..a82c9ea4 100644 --- a/.github/workflows/call-calc-coverage.yml +++ b/.github/workflows/call-calc-coverage.yml @@ -1,8 +1,20 @@ # Run r cmd check -on: [push, pull_request] - name: call-calc_coverage - +on: + push: + paths-ignore: + - '.github/**' + - 'docs/**' + - '**.md' + - '**.MD' + - '.gitignore' + pull_request: + paths-ignore: + - '.github/**' + - 'docs/**' + - '**.md' + - '**.MD' + - '.gitignore' jobs: call-workflow: uses: nmfs-stock-synthesis/workflows/.github/workflows/calc-coverage.yml@main diff --git a/.github/workflows/call-doc-and-style-r.yml b/.github/workflows/call-doc-and-style-r.yml index 2fbc9766..84886f34 100644 --- a/.github/workflows/call-doc-and-style-r.yml +++ b/.github/workflows/call-doc-and-style-r.yml @@ -3,6 +3,12 @@ on: workflow_dispatch: push: branches: [main] + paths-ignore: + - '.github/**' + - 'docs/**' + - '**.md' + - '**.MD' + - '.gitignore' name: call-doc-and-style-r jobs: call-workflow: diff --git a/.github/workflows/call-r-cmd-check.yml b/.github/workflows/call-r-cmd-check.yml index a212d394..4054c05b 100644 --- a/.github/workflows/call-r-cmd-check.yml +++ b/.github/workflows/call-r-cmd-check.yml @@ -1,6 +1,12 @@ # Run r cmd check on: push: + paths-ignore: + - '.github/**' + - 'docs/**' + - '**.md' + - '**.MD' + - '.gitignore' pull_request: schedule: # This should run the default branch weekly on sunday