Installing browsers during the GitHub Actions workflow may not make them available in the Azure App Service runtime. Azure App Service has a specific environment, and installing browsers there isn't the same as on a typical VM or a local machine. Direct installation via webssh is also problematic because you're altering the environment in a way that Azure App Service might not be equipped to handle, leading to crashes.
Instead of installing Playwright directly on Azure App Service, consider using Docker with Azure App Service. By using a Docker container, you have more control over the environment, ensuring that all dependencies for Playwright are present.