Skip to content

Commit 096425c

Browse files
committed
shell
1 parent 99be5f6 commit 096425c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/actions/build/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ runs:
8484
fi
8585
- name: Git checkout
8686
uses: actions/checkout@v3
87-
- name: Override env.json
88-
if: ${{ inputs.override_env_json != '' }}
89-
run: mv ${{ inputs.override_env_json }}.${{ inputs.environment }} ${{ inputs.override_env_json }}
90-
shell: bash
91-
9287
- name: Detect env
9388
uses: infinum/js-pipeline/.github/actions/detect-env@v1
9489
with:
@@ -127,6 +122,10 @@ runs:
127122
run: |
128123
echo "${{ env.app_secrets }}" > .env
129124
echo "Secrets have been added to the .env file"
125+
- name: Override env.json
126+
if: ${{ inputs.override_env_json != '' }}
127+
run: mv ${{ inputs.override_env_json }}.${{ inputs.environment }} ${{ inputs.override_env_json }}
128+
shell: bash
130129
- name: Run build
131130
shell: bash
132131
id: 'build'

0 commit comments

Comments
 (0)