Skip to content

Conversation

Alwil17
Copy link

@Alwil17 Alwil17 commented Jun 18, 2025

This pull request introduces changes to modernize the deployment workflow and improve compatibility in the Probot application code. Key updates include transitioning to a newer Node.js runtime, enhancing authentication in the deployment process, and refactoring the Probot app initialization for better readability and maintainability.

Deployment Workflow Updates:

  • .github/workflows/deploy.yml: Updated the Node.js runtime from nodejs12 to nodejs20 for deploying the Google Cloud Function, ensuring compatibility with modern environments.
  • .github/workflows/deploy.yml: Replaced service_account_key with google-github-actions/auth@v2 for authentication, using a credentials_json approach for improved security and clarity.

Probot Application Refactoring:

  • function.js: Refactored the Probot app initialization to use the Probot class directly, replacing createProbot() for better control over environment variables and handling RSA key formatting.
  • function.js: Updated the export syntax to CommonJS for compatibility with Node.js and clarified the naming of the imported app function (appFn).

@Alwil17 Alwil17 changed the title Fixed gcf deploy workflow fix: updated deploy worflow to match actual google cloud actions rules Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant