cncf / cncf.io

☁️♮🏛🚧 The CNCF.io WordPress website
https://cncf.io
MIT License
82 stars 37 forks source link

Find a way to trigger people sync on people merge PR #603

Closed cjyabraham closed 1 year ago

cjyabraham commented 1 year ago

When people merge a PR into the People repo they often expect their changes to be reflected on the live CNCF site immediately whereas it normally updates only twice/day. See if I can hook up a GitHub action to automatically sync the live site.

Write script to hit API endpoint which re-imports people and clears the cache on people URLs

cjyabraham commented 1 year ago

Consider triggering WPCLI commands from the GitHub Action instead of calling the front-end API through HTTP

thetwopct commented 1 year ago

Here's an article about remote server access via wp-cli, it's fairly undocumented, but this gives some nice examples https://jmichaelward.com/using-wp-cli-to-import-a-remote-database/

cjyabraham commented 1 year ago

This could also possibly be applied to the landscape sync for project data and perhaps other links.

cjyabraham commented 1 year ago

PR has been merged. Copying over the todo items:

cjyabraham commented 1 year ago

I used the WP Control plugin to go in and delete the twice/daily people sync operation. Now it will only happen when the on a merge operation for a PR in the People repo.

cjyabraham commented 1 year ago

I've updated the readme to describe when to expect PR updates to be reflected on the CNCF site.