packages
packages copied to clipboard
Update package website via cross-repo action dispatch
This adds a step to the aggregation action that dispatches an action in the package-website repository to notify it of new data. This allows that repo to avoid manually requesting data from the packages repo except only when needed.
Just curious, could this be a webhook configured through Github?
Just curious, could this be a webhook configured through Github?
I tried doing a webhook when I was testing it on another repo, but iirc there were a couple of reasons why it wouldn't work for this:
- The event selection isn't fine enough granularity. We only want this to trigger on the aggregation workflow completing, and only on the master branch. The options in the webhook interface only allow you to select workflows starting/stopping.
- You can't specify the payload being passed to the webhook, just a URL. For dispatching actions, you have to pass what action should be triggered as data in the request. The data that gets passed is specified by the github webhook itself, so you'd need to add some filtering on the receiving side.
@timwoj I'm just going to close this until we actually need the dispatch. :-)