Skip to content

Conversation

@mikeredmond
Copy link
Member

This pull request updates the deployment workflows for both mainnet and testnet environments to improve reliability and ensure deployment comments are managed correctly. The most important changes include refactoring the checkout process in the mainnet workflow and enhancing the testnet workflow to prevent duplicate deployment comments.

Mainnet workflow improvements:

  • Refactored the checkout process in .github/workflows/mainnet-deploy.yml by separating the initial repository checkout from the ref selection step, using a manual git checkout for the desired version or tag. This improves clarity and reliability when deploying different versions.

Testnet workflow enhancements:

  • Added explicit pull request trigger types (opened, reopened, synchronize) to the workflow configuration in .github/workflows/testnet-deploy.yml to ensure deployments are triggered on relevant PR events.
  • Implemented a step to find existing deployment comments before creating a new one, using peter-evans/find-comment, and updated the comment creation step to use the found comment ID. This prevents duplicate deployment comments on pull requests.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@mikeredmond mikeredmond merged commit ac5dcba into main Dec 12, 2025
9 checks passed
@mikeredmond mikeredmond deleted the mike/fix-latest-tag-deploy branch December 12, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants