cannot rename an environment #204754
🏷️ Discussion TypeBug 💬 Feature/Topic AreaOther Discussion Details
please add option to rename an environment
|
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
this isn’t you missing a button. github actions environments just can’t be renamed after create. you must:
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. |
|
You actually can't directly rename an environment in GitHub once it's created, as they don't have a built-in rename feature for that right now. To change the name, you'll need to create a brand new environment with the name you want, and manually copy over any secrets, variables, or protection rules from the old one. After that, just update your GitHub Actions workflow files to point to the new environment name, and then you can safely delete the old one. |

this isn’t you missing a button. github actions environments just can’t be renamed after create.
you must:
environment: old-nametoenvironment: new-nameheads-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.