Skip to content

Commit 06eef2d

Browse files
authored
Merge pull request #4312 from platformsh/4311-change-order-of-operations-of-default-environment-pages
feat: swapped steps 5 and 6 around
2 parents 3332cc7 + bb5efe7 commit 06eef2d

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

sites/platform/.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ varnish:
10161016
- '6.4'
10171017
- '7.1'
10181018
supported:
1019+
- '7.6'
10191020
- '7.3'
10201021
- '7.2'
10211022
- '6.0'

sites/platform/src/environments/default-environment.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,15 @@ Once you resubmit a request, it appears under the `main` environment on {{% vend
119119

120120
{{< /codetabs >}}
121121

122+
## 5. Deactivate the `old` branch
122123

123-
## 5. Set `main` as the default branch
124+
To change your default branch, you first need to deactivate the existing default branch to remove protections.
125+
Deactivate the `old` environment without deleting it by running the following CLI command:
126+
127+
```bash
128+
{{% vendor/cli %}} environment:delete --no-delete-branch old
129+
```
130+
## 6. Set `main` as the default branch
124131

125132
{{< codetabs >}}
126133
+++
@@ -152,15 +159,6 @@ Follow the instructions to change the default branch to `main` for your provider
152159

153160
{{< /codetabs >}}
154161

155-
## 6. Deactivate the `old` branch
156-
157-
To change your default branch, you first need to deactivate the existing default branch to remove protections.
158-
Deactivate the `old` environment without deleting it by running the following CLI command:
159-
160-
```bash
161-
{{% vendor/cli %}} environment:delete --no-delete-branch old
162-
```
163-
164162
## 7. Update DNS records
165163

166164
Whether or not you're using a CDN,

sites/upsun/src/environments/default-environment.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,16 @@ Once you resubmit a request, it appears under the `main` environment on {{% vend
119119

120120
{{< /codetabs >}}
121121

122-
## 5. Set `main` as the default branch
122+
## 5. Deactivate the `old` branch
123+
124+
To change your default branch, you first need to deactivate the existing default branch to remove protections.
125+
Deactivate the `old` environment without deleting it by running the following CLI command:
126+
127+
```bash
128+
{{% vendor/cli %}} environment:delete --no-delete-branch old
129+
```
130+
131+
## 6. Set `main` as the default branch
123132

124133
{{< codetabs >}}
125134
+++
@@ -151,15 +160,6 @@ Follow the instructions to change the default branch to `main` for your provider
151160

152161
{{< /codetabs >}}
153162

154-
## 6. Deactivate the `old` branch
155-
156-
To change your default branch, you first need to deactivate the existing default branch to remove protections.
157-
Deactivate the `old` environment without deleting it by running the following CLI command:
158-
159-
```bash
160-
{{% vendor/cli %}} environment:delete --no-delete-branch old
161-
```
162-
163163
## 7. Update DNS records
164164

165165
Whether or not you're using a CDN,

0 commit comments

Comments
 (0)