-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
You can just add an `on: schedule (nightly cron)` to the nightly workflow
along with pushes to productions in the `workflow.yml`
…On Mon, Mar 15, 2021 at 10:05 AM Jaylen Wimbish ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANHXYVZRHURHMFSZWV6PDDTDY44JANCNFSM4ZG6G5HQ>
.
|
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. |
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 |
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 thedevelopment
branch. Implement the same forproduction
.The text was updated successfully, but these errors were encountered: