Skip to content

Don't use deployments when they aren't needed#10725

Open
kewisch wants to merge 1 commit intothunderbird:mainfrom
kewisch:deployments
Open

Don't use deployments when they aren't needed#10725
kewisch wants to merge 1 commit intothunderbird:mainfrom
kewisch:deployments

Conversation

@kewisch
Copy link
Copy Markdown
Member

@kewisch kewisch commented Mar 23, 2026

Avoiding deployments where not needed. I wasn't sure about shippable builds, I'm not sure we need deployments there at all since we don't use them, but since that is the once spot where we "deploy" something I left some of them as is. Please review where you need deployments.

https://github.blog/changelog/2026-03-19-github-actions-late-march-2026-updates/

environment: publish_hold
environment:
name: publish_hold
deployment: false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might need to be true since it has a deployment protection rule.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the docs at https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments#using-environments-without-deployments

When deployment is set to false:
Required reviewers still apply—reviewers must still approve before the job runs.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the link. This will work as-is then. I guess the next question is do we want to have an audit record of deployments for publish hold or not. I think we might want to retain them for security purposes.

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.

2 participants