ribbity-org / ribbity

Software to turn GitHub issue trackers into mkdocs Web sites.
https://ribbity-org.github.io/ribbity-docs/
Other
8 stars 2 forks source link

update workflow to build on push #33

Closed raynamharris closed 2 years ago

raynamharris commented 2 years ago

currently, the workflow is only triggered on issues.

on:
  issues:
      types: [opened, edited, deleted, closed, reopened, labeled, unlabeled,  transferred]

might be good to add on push as well

  push:
     branches:
       - main            
raynamharris commented 2 years ago

this way, any change to config files with trigger the build, not just edits to issues

ctb commented 2 years ago

yep. I was actually thinking that a good default would be:

but I don't know how to do the first one :)

I don't expect the config file to change that frequently, tho, so this would mostly be of interest to developers, I suspect :).

raynamharris commented 2 years ago

i think you can do something like

on:
  schedule: 
  - cron: "*/15 * * * *" # every 15 minutes. set to whatever interval you like
raynamharris commented 2 years ago

amanda uses 👇 in https://github.com/nih-cfde/published-documentation/blob/stable/.github/workflows/update_C2M2.yml for instance

on:
  schedule:
   - cron:  '0 * * * *'
ctb commented 2 years ago

right, but doesn't tackle "if changed" though. want to avoid really regular building of the site with no changes!