Skip to content

Commit 789c1b4

Browse files
committed
Don't show DDL statements but pscale command info
Add command info for ps-attach as well Add pscale commands to branch creation workflow Newline changes
1 parent 0f42b3d commit 789c1b4

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

.github/workflows/create-db-branch-and-pr-dr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,20 @@ jobs:
102102
103103
* :lock: __Branch connection info__: [One-time link](${{ steps.create-db-branch-and-dr.outputs.CONNECTION_STRING_LINK }})
104104
105+
<details>
106+
<summary>:computer: pscale CLI commands for local access</summary>
107+
108+
109+
```
110+
111+
pscale shell "${{ steps.create-db-branch-and-dr.outputs.DB_NAME }}" "${{ steps.create-db-branch-and-dr.outputs.BRANCH_NAME }}" --org "${{ steps.create-db-branch-and-dr.outputs.ORG_NAME }}"
112+
113+
pscale connect "${{ steps.create-db-branch-and-dr.outputs.DB_NAME }}" "${{ steps.create-db-branch-and-dr.outputs.BRANCH_NAME }}" --org "${{ steps.create-db-branch-and-dr.outputs.ORG_NAME }}"
114+
115+
```
116+
117+
</details>
118+
105119
<details>
106120
<summary>:scroll: Proposed DDL-Statements:</summary>
107121

.github/workflows/issue-ops-ps-commands.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ jobs:
464464
BRANCH_NAME: ${{ steps.create-db-branch-and-dr.outputs.BRANCH_NAME }}
465465
BRANCH_URL: ${{ steps.create-db-branch-and-dr.outputs.BRANCH_URL }}
466466
DB_NAME: ${{ steps.create-db-branch-and-dr.outputs.DB_NAME }}
467-
ORG_NAME: ${{ steps.create-db-branch-and-dr.ORG_NAME }}
467+
ORG_NAME: ${{ steps.create-db-branch-and-dr.outputs.ORG_NAME }}
468468
DDL_STATEMENTS: ${{ steps.validate_params.outputs.DDL_STATEMENTS }}
469469
BRANCH_DIFF: ${{ steps.create-db-branch-and-dr.outputs.BRANCH_DIFF }}
470470
with:
@@ -481,11 +481,12 @@ jobs:
481481
* :lock: __Branch connection info__: [One-time link](${{ steps.create-db-branch-and-dr.outputs.CONNECTION_STRING_LINK }})
482482
483483
<details>
484-
<summary>:scroll: Proposed DDL-Statements:</summary>
485-
486-
\`\`\`
487-
${DDL_STATEMENTS}
488-
\`\`\`
484+
<summary>:computer: pscale CLI commands for local access</summary>
485+
486+
\`\`\`
487+
pscale shell "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
488+
pscale connect "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
489+
\`\`\`
489490
490491
</details>
491492
@@ -664,7 +665,7 @@ jobs:
664665
BRANCH_NAME: ${{ steps.update-db-branch.outputs.BRANCH_NAME }}
665666
BRANCH_URL: ${{ steps.update-db-branch.outputs.BRANCH_URL }}
666667
DB_NAME: ${{ steps.update-db-branch.outputs.DB_NAME }}
667-
ORG_NAME: ${{ steps.update-db-branch.ORG_NAME }}
668+
ORG_NAME: ${{ steps.update-db-branch.outputs.ORG_NAME }}
668669
DDL_STATEMENTS: ${{ steps.validate_params.outputs.DDL_STATEMENTS }}
669670
BRANCH_DIFF: ${{ steps.update-db-branch.outputs.BRANCH_DIFF }}
670671
with:
@@ -680,14 +681,13 @@ jobs:
680681
* :train2: [Deploy request](${DEPLOY_REQUEST_URL})
681682
682683
<details>
683-
<summary>:scroll: Added DDL-Statements:</summary>
684-
684+
<summary>:computer: pscale CLI commands for local access</summary>
685+
685686
\`\`\`
686-
${DDL_STATEMENTS}
687+
pscale shell "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
688+
pscale connect "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
687689
\`\`\`
688690
689-
</details>
690-
691691
<details>
692692
<summary>📖 Calculated schema changes:</summary>
693693
@@ -1228,7 +1228,7 @@ jobs:
12281228
BRANCH_NAME: ${{ steps.retrieve-attached-info.outputs.BRANCH_NAME }}
12291229
BRANCH_URL: ${{ steps.retrieve-attached-info.outputs.BRANCH_URL }}
12301230
DB_NAME: ${{ steps.retrieve-attached-info.outputs.DB_NAME }}
1231-
ORG_NAME: ${{ steps.retrieve-attached-info.ORG_NAME }}
1231+
ORG_NAME: ${{ steps.retrieve-attached-info.outputs.ORG_NAME }}
12321232
BRANCH_DIFF: ${{ steps.retrieve-attached-info.outputs.BRANCH_DIFF }}
12331233
with:
12341234
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1243,6 +1243,16 @@ jobs:
12431243
* :train2: [Deploy request](${DEPLOY_REQUEST_URL})
12441244
* :lock: __Branch connection info__: [One-time link](${{ steps.retrieve-attached-info.outputs.CONNECTION_STRING_LINK }})
12451245
1246+
<details>
1247+
<summary>:computer: pscale CLI commands for local access</summary>
1248+
1249+
\`\`\`
1250+
pscale shell "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
1251+
pscale connect "${DB_NAME}" "${BRANCH_NAME}" --org "${ORG_NAME}"
1252+
\`\`\`
1253+
1254+
</details>
1255+
12461256
<details>
12471257
<summary>📖 Calculated schema changes:</summary>
12481258

0 commit comments

Comments
 (0)