Skip to content

Commit 3bc12d6

Browse files
committed
TCLOUD-4780: Replace shell code that failed with nodejs
1 parent ff18535 commit 3bc12d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/preview_create.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
id: get-subdomain
5353
working-directory: ./.github/workflows/scripts
5454
run: |
55-
node ./branch-to-subdomain.js | { read s; echo "subdomain=$s" } >> $GITHUB_OUTPUT
55+
node ./branch-to-subdomain.js >> $GITHUB_OUTPUT
5656
5757
- name: configure aws credentials
5858
uses: aws-actions/[email protected]

.github/workflows/preview_delete.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: get-subdomain
3434
working-directory: ./.github/workflows/scripts
3535
run: |
36-
node ./branch-to-subdomain.js | { read s; echo "subdomain=$s" } >> $GITHUB_OUTPUT
36+
node ./branch-to-subdomain.js >> $GITHUB_OUTPUT
3737
3838
- name: configure aws credentials
3939
uses: aws-actions/[email protected]

.github/workflows/scripts/branch-to-subdomain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ const subdomain = (
88
.replace(/-$/g, '') // remove trailing dash
99
.slice(0, 63) // limit to 63 characters
1010
);
11-
console.log(subdomain);
11+
console.log(`subdomain=${subdomain}`);

0 commit comments

Comments
 (0)