Zenysis / Harmony

The Harmony Analytics Platform (Harmony), developed by Zenysis Technologies, helps make sense of messy data by transforming, cleaning and enriching data from multiple sources. https://www.zenysis.com/#harmony
GNU Affero General Public License v3.0
30 stars 13 forks source link

building only on approval saves us some cpu - do not merge #133

Open Sybrand opened 3 weeks ago

Sybrand commented 3 weeks ago

Ideally images are buildable before merging - but building on every commit to a PR is too expensive.

What we do now, is wait until a PR is approved before building it.

This way branch rules can be kept in place (must be built before merging) and don't waste cycles building on each commit.

okumujustine commented 2 weeks ago

Looked at this even though it's assigned to @zenenock, it looks good.

Sybrand commented 4 days ago

Turns out this isn't as easy as I had hoped.

pull_request_review:
      types: [submitted]

Only works for you on the approve event, you can't access github.event.review.state on any push after the approval. If we enforced that approval is required on a push after approval then it would be ok - but we don't want that kind of bureaucracy.

Also - the reference github.head_ref || github.ref_name is slightly different on an approval event.