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 trigger workflows in the site starter repository #12

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

Comments

@jaylenw
Copy link
Member

jaylenw commented Mar 15, 2021

Problem

Originally, with Circle-CI, there was a scheduled workflow that had the site starter rebuilt nightly. This was done because sometimes when the data is updated on the data repository, the site would not show the new data. After the nightly build was done, it will deploy the same code base of the site but now with the updated data. We want to have a GitHub Actions workflow that triggers the rebuild and deployment of the the site for the environment that was updated in the data starter repository with new data.

Solution

Look into implementing a way with GitHub Actions in having a workflow trigger another workflow. When the development branch of this repository is updated, it will run the workflow to build and deploy the data to CloudFront, at the end of the workflow it should trigger the workflow to build and deploy the site from the development branch. Implement the same for production.

@hunterowens
Copy link

hunterowens commented Mar 15, 2021 via email

@tmargono tmargono reopened this Mar 15, 2021
@jaylenw
Copy link
Member Author

jaylenw commented Mar 15, 2021

Hey @hunterowens , thanks for your input. We were thinking about that and will implement it if we are unable to add a trigger. We are thinking that the site owners would like to see their updated content made to the data repository reflect on the site soon after the changes were made. By having the trigger, they will not have to wait until the morning or trigger a manual rebuild of the site to see the latest data changes.

@tmargono
Copy link
Contributor

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

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

3 participants