Skip to content

Commit 5541410

Browse files
committed
Add override env.json option
1 parent 4b4f48c commit 5541410

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/actions/build/action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ inputs:
5050

5151
override_env_json:
5252
required: false
53-
description: 'Contents of the env.json file to override with'
53+
description: 'Override env.json file'
5454

5555
# vault:
5656
VAULT_ADDR:
@@ -86,18 +86,15 @@ runs:
8686
uses: actions/checkout@v3
8787
- name: Override env.json
8888
if: ${{ inputs.override_env_json != '' }}
89-
uses: "DamianReeves/write-file-action@master"
90-
with:
91-
path: ./src/assets/env.json
92-
write-mode: overwrite
93-
contents: ${{ inputs.override_env_json }}
89+
run: mv appsettings_dev.json appsettings.json
90+
9491
- name: Detect env
9592
uses: infinum/js-pipeline/.github/actions/detect-env@v1
9693
with:
9794
runner: ${{ inputs.runner }}
9895
framework: ${{ inputs.framework }}
9996
ssr: ${{ inputs.ssr }}
100-
package_manager: ${{ inputs.package_manager }}
97+
package_manager: ${{ inputs.package_manager }}
10198
newrelic: ${{ inputs.newrelic }}
10299
dist_path: ${{ inputs.dist_path }}
103100
- name: 'Bootstrap up the Node.js environment'

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ on:
117117
override_env_json:
118118
required: false
119119
type: string
120-
description: 'Contents of the env.json file to override with'
120+
description: 'Override the env.json file'
121121

122122
secrets:
123123
VAULT_ADDR:

0 commit comments

Comments
 (0)