Skip to content

Commit

Permalink
be more specific about when to run gh actions
Browse files Browse the repository at this point in the history
avoid running gh actions when gh actions or documentation changes (to the extent possible)
  • Loading branch information
k-doering-NOAA committed Dec 8, 2021
1 parent deea307 commit a44ea43
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/call-calc-coverage.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .github/workflows/call-doc-and-style-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/call-r-cmd-check.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a44ea43

Please sign in to comment.