Skip to content
Compare
Choose a tag to compare
@GrantBirki GrantBirki released this 16 Dec 19:01
1ba61f9

v10.0.0

v10 of the github/branch-deploy Action is focused around safety, security, and usability improvements 🚀

BREAKING

Please note that even though there are breaking changes listed, the vast majority of users should be able to simply upgrade to github/branch-deploy@v10 without any issues

  • The checks input option can now be used with a comma separated list of CI checks if you only want certain checks to be considered "blocking" in terms of deployments. Read more here.
  • Pull requests in the CHANGES_REQUESTED state are now treated the same as PRs in the REVIEW_REQUIRED state.
  • The structure and content of the pre/post deployment messages (that get written to PRs) has changed to contain more rich information. This isn't really a breaking change, but it could be if you are parsing these comments in some way.
  • The deployment payload that gets set to the GitHub API will now contain two new attributes: params and parsed_params
  • By default, you can no longer .deploy or .noop a pull request fork unless it has approvals - reference. These changes have been made as an extra safety check against potentially untrusted commits
  • You will no longer be able to deploy a pull request if the target branch is not the default branch - reference1 reference2

Key Changes

  • You should use ${{ steps.branch-deploy.outputs.sha }} everywhere instead of ${{ steps.branch-deploy.outputs.ref }} - documentation
  • The structure of the deployment payload that gets sent to the GitHub API has a few new attributes - documentation
  • You can now have fine grained control to include or ignore CI checks that can (or can't) block your deployments - documentation
  • The message rendering system for pre/post deployment messages has been greatly improved. It now has many more variables for custom deployment messages and the default structures have been updated a bit - PR reference
  • A new input option has been added commit_verification: true that enforces commits to be signed/verified before they can be deployed by this Action - PR reference
  • A lot of new outputs have been added so subsequent workflow steps have access to even more rich data related to deployments
  • Preventing the ability to deploy a pull request that is not targeting the default branch
  • Branch ruleset warning checks - If you have a potential security misconfiguration in your branch rulesets, this Action will loudly warn you about it in the deployment logs
  • The sha output is now available on "Merge commit strategy" deployments as well

What's Changed

Here is a full list of changes:

New Contributors

Full Changelog: v9.10.0...v10.0.0