CityOfLosAngeles / open-sdg-site-starter

A starting point for the site repository of an Open SDG platform implementation.
https://sdgdata.lamayor.org
MIT License
3 stars 4 forks source link

Modify GitHub Actions workflows to accept dispatch trigger workflows #17

Open jaylenw opened 3 years ago

jaylenw commented 3 years ago

Problem

The GitHub Actions Workflows in this repository needs to accept the trigger from the the workflows in the data starter repository.

Background info

Please refer to https://github.com/CityOfLosAngeles/open-sdg-data-starter/issues/12 for additional info.

Solution

Refer to the link that Timothy mentioned about having workflows triggering another one. We want the site to be rebuilt and deployed for the same environment where new data was pushed to in the data starter repository.

tmargono commented 3 years ago

Need to add restriction to repository_dispatch to differentiate between dev and prod workflow run. https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch

tmargono commented 3 years ago

Noting that since repository_dispatch triggers pipelines in the default branch, pipelines will need to be located solely in the development (default) branch. Pipelines in the prod branch should be ignored.