Yeah, actions shouldn't be used like this, as per their terms[0]:
> Additionally, Actions should not be used for:
> * cryptomining;
> * using our servers to disrupt, or to gain or to attempt to gain unauthorized access to, any service, device, data, account, or network (other than those authorized by the GitHub Bug Bounty program);
> * the provision of a stand-alone or integrated application or service offering Actions or any elements of Actions for commercial purposes;
> * any activity that places a burden on our servers, where that burden is disproportionate to the benefits provided to users (for example, don't use Actions as a content delivery network or as part of a serverless application, but a low benefit Action could be ok if it’s also low burden); or
> * any other activity unrelated to the production, testing, deployment, or publication of the software project associated with the repository where GitHub Actions are used.
Specifically the next to last point, shouldn't be used "as a part of a serverless application".
> Additionally, Actions should not be used for:
> * cryptomining;
> * using our servers to disrupt, or to gain or to attempt to gain unauthorized access to, any service, device, data, account, or network (other than those authorized by the GitHub Bug Bounty program);
> * the provision of a stand-alone or integrated application or service offering Actions or any elements of Actions for commercial purposes;
> * any activity that places a burden on our servers, where that burden is disproportionate to the benefits provided to users (for example, don't use Actions as a content delivery network or as part of a serverless application, but a low benefit Action could be ok if it’s also low burden); or
> * any other activity unrelated to the production, testing, deployment, or publication of the software project associated with the repository where GitHub Actions are used.
Specifically the next to last point, shouldn't be used "as a part of a serverless application".
[0]: https://docs.github.com/en/github/site-policy/github-additio...