Skip to content

fix: updated deploy worflow to match actual google cloud actions rules #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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