Skip to content

Conversation

krainboltgreene
Copy link
Contributor

The API allows for updating the environment name when creating a status: https://docs.github.com/en/rest/deployments/statuses?apiVersion=2022-11-28#create-a-deployment-status

@bobheadxi bobheadxi merged commit 9bf3b18 into bobheadxi:main May 23, 2023
bobheadxi added a commit that referenced this pull request May 23, 2023
@@ -18,7 +19,7 @@ async function createFinish(
) {
const {
log,
coreArgs: { description, logsURL },
coreArgs: { description, logsURL, environment },
} = context;
Copy link
Owner

@bobheadxi bobheadxi May 23, 2023

Choose a reason for hiding this comment

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

Thanks for the contribution, but this change doesn't seem quite right. This environment is from context, whereas it seems you are trying to parameterize it as an action input?

Either way, both don't align with the createDeploymentStatus which only allows a set of values "production" | "staging" | "qa" so this doesn't build

Copy link
Owner

Choose a reason for hiding this comment

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

I've reverted the changes for now

bobheadxi added a commit that referenced this pull request May 23, 2023
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