packages icon indicating copy to clipboard operation
packages copied to clipboard

Update package website via cross-repo action dispatch

Open timwoj opened this issue 9 months ago • 2 comments

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.

timwoj avatar Nov 01 '23 20:11 timwoj

Just curious, could this be a webhook configured through Github?

Github settings -> webhook screenshot

bbannier avatar Nov 02 '23 08:11 bbannier

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:

  1. 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.
  2. 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 avatar Nov 05 '23 01:11 timwoj

@timwoj I'm just going to close this until we actually need the dispatch. :-)

ckreibich avatar May 03 '24 02:05 ckreibich