Skip to content
Discussion options

You must be logged in to vote

this isn’t you missing a button. github actions environments just can’t be renamed after create.

you must:

  1. create a new environment with the name you want
  2. copy over secrets / variables / protection rules (reviewers, wait timer, branch/tag policies, etc....)
  3. update workflows from environment: old-name to environment: new-name
  4. delete the old environment only after you’re sure nothing still references it

heads-up: deleting an environment also deletes its secrets + rules, and any jobs waiting on that environment’s protection rules can fail. so do the cutover carefully.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by NicolasHu11
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Actions Build, test, and automate your deployment pipeline with world-class CI/CD other General topics and discussions that don't fit into other categories, but are related to GitHub Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
3 participants