Conditional Releases
A while back, I set up automated publishing schedules, and this has mostly been working pretty well. However, there are two problems that have come out of it:
- Release publishing happens even if no new note is selected
- There are a lot of junk releases
To resolve this, I've added a small change to make releases conditional on the selection of a new note:
- name: Create release
if: env.NOTE != ''
This environment variable is set when a note is selected in a previous step. The approach now prevents publishing a release if a note is not selected, cutting down on the number of releases published. I think one other future enhancement here could be that there should also be a release for edits on notes. I'm okay with skipping this for now because once a note is published, waiting for a new note to push edits doesn't seem like the worst thing.
- Previous: Give Tech a Budget
- Next: Reading Habits