Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify GitHub Actions workflows to accept dispatch trigger workflows #17

Open
jaylenw opened this issue Mar 15, 2021 · 2 comments
Open
Assignees

Comments

@jaylenw
Copy link
Member

jaylenw commented Mar 15, 2021

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 CityOfLosAngeles/open-sdg-data-starter#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
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants