Skip to content

Commit ed138a9

Browse files
committed
Move env files to subdirectory
1 parent b02a8d6 commit ed138a9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ jobs:
7272
DEPLOY_REQUEST_URL: ${{ steps.create-db-branch-and-dr.outputs.DEPLOY_REQUEST_URL }}
7373
BRANCH_URL: ${{ steps.create-db-branch-and-dr.outputs.BRANCH_URL }}
7474
run: |
75-
envsubst < ps-env-template.sh > ps-env-${BRANCH_NAME}.sh
76-
chmod a+x ps-env-${BRANCH_NAME}.sh
75+
mkdir -p .pscale
76+
envsubst < ps-env-template.sh > .pscale/ps-env-${BRANCH_NAME}.sh
77+
chmod a+x .pscale/ps-env-${BRANCH_NAME}.sh
7778
7879
7980
- name: Create corresponding Git branch and Pull Request

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
id: get-ps-env
111111
env:
112112
REF: ${{ needs.prechecks.outputs.ref }}
113-
run: ./ps-env-${REF}.sh
113+
run: .pscale/ps-env-${REF}.sh
114114

115115
- name: Acknowledge /ps-merge request with context
116116
id: acknowledge
@@ -177,7 +177,7 @@ jobs:
177177
REF: ${{ needs.prechecks.outputs.ref }}
178178

179179
run: |
180-
. ps-env-${REF}.sh && ./merge-deploy-request.sh $DEPLOY_REQUEST_NUMBER
180+
. .pscale/ps-env-${REF}.sh && ./merge-deploy-request.sh $DEPLOY_REQUEST_NUMBER
181181
182182
- name: Schema change merge succeeded
183183
id: merging-succeeded
@@ -339,7 +339,7 @@ jobs:
339339
core.info("DDL statements: " + DDL_STATEMENTS)
340340
core.setOutput('DDL_STATEMENTS', DDL_STATEMENTS)
341341
342-
const ps_env_name = 'ps-env-' + REF + ".sh"
342+
const ps_env_name = '.pscale/ps-env-' + REF + ".sh"
343343
// check whether file ps_env_name exists in the repo and given ref
344344
try {
345345
const response = await github.repos.getContent({
@@ -401,8 +401,9 @@ jobs:
401401
DEPLOY_REQUEST_URL: ${{ steps.create-db-branch-and-dr.outputs.DEPLOY_REQUEST_URL }}
402402
BRANCH_URL: ${{ steps.create-db-branch-and-dr.outputs.BRANCH_URL }}
403403
run: |
404-
envsubst < ps-env-template.sh > ps-env-${REF}.sh
405-
chmod a+x ps-env-${REF}.sh
404+
mkdir -p .pscale/
405+
envsubst < ps-env-template.sh > .pscale/ps-env-${REF}.sh
406+
chmod a+x .pscale/ps-env-${REF}.sh
406407
407408
- name: Commit changes
408409
uses: elstudio/actions-js-build/commit@v4

0 commit comments

Comments
 (0)