Overview

This is a memorandum on how to trigger GitHub Actions from Drupal events.

The following site was helpful:

https://qiita.com/hmaruyama/items/3d47efde4720d357a39e

Pipedream Configuration

Create a workflow that includes a trigger and a custom_request.

For the trigger, please refer to the following:

https://qiita.com/hmaruyama/items/3d47efde4720d357a39e#pipedream側の設定

In custom_request, configure the dispatch settings.

https://docs.github.com/ja/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-dispatch-event

Configure the settings as follows:

cur----h-lXHHHtdt-P"""p'LOAAXs{Scu-:"\TctG/eehi/v\potaetrHpn:iuitzb._aa-gtptAiypiptploihein-u"c:Vb:ae."tBrcwiesoeoaimbnro/h/enrovr:eonpkd<2o".Y0s}gO2/'iU2OtR-Wh-1NuT1EbO-R+K2/jE8RsN"Eo>Pn"\O"/\d\ispatches\

Drupal Configuration

Install the following module:

https://www.drupal.org/project/webhooks

After installation, configure it on the following page:

/admin/config/services/webhook

GitHub Actions Configuration

Configure repository_dispatch as follows. This allows GitHub Actions to be executed based on requests from Pipedream.

nopcjaneoom:p#rrcngcbeuemocras:sbAptinuon:hrloystrucB:a-lsp-serpeunoieine:licmwtswotn-lhaso:ensc"ideirbs:ybnsneyh::u-a:x_oripntdoelrdeikadorsd-gDnpareaanepltdslc-sowhd:ye:ebptthlrooouoyePk"rotdruicgtgieorn

Summary

It may also be possible to send notifications to GitHub by creating a custom Drupal module without using Pipedream. (Such a module has likely already been developed, but I was unable to find one.)

I hope this serves as a useful reference.