nmfs-fish-tools / ghactions4r

Reusable github actions workflows for R packages
https://nmfs-fish-tools.github.io/ghactions4r/
12 stars 1 forks source link

[Feature]: make build triggers more selective #74

Open k-doering-NOAA opened 1 year ago

k-doering-NOAA commented 1 year ago

Is your feature request related to a problem? Please describe.

I noticed the build trigger for doc and style from the template runs on push to main - it could be more selective, e.g.,

on:
  # workflow_dispatch:
  push:
    paths:
      - 'R/**'
      - 'tests/**'
      - 'vignettes/**'
    branches: [main]

Describe the solution you would like.

look at the templates and modify them to be more selective

Describe alternatives you have considered

leave as is, which are simpler and easier to understand.

Additional context

No response