File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 required : false
4747 type : string
4848 default : " "
49+ autoinit_env :
50+ description : " Automatically run env:init:ci script after installing dependencies"
51+ required : false
52+ type : boolean
53+ default : false
4954 secrets :
5055 env_local :
5156 description : " Env local file to set environment variables (one export per line)"
@@ -135,6 +140,10 @@ jobs:
135140 - name : Install dependencies
136141 run : pnpm install
137142
143+ - name : Initialize environment
144+ if : ${{ inputs.autoinit_env }}
145+ run : pnpm run env:init:ci
146+
138147 - name : Run build
139148 working-directory : ${{ inputs.working_directory }}
140149 run : |
Original file line number Diff line number Diff line change 8888 required : false
8989 type : string
9090 default : " "
91+ autoinit_env :
92+ description : " Automatically run env:init:ci script after installing dependencies"
93+ required : false
94+ type : boolean
95+ default : false
9196 secrets :
9297 app_id :
9398 description : " GitHub App ID"
@@ -154,6 +159,10 @@ jobs:
154159 - name : Install dependencies
155160 run : ${{ env.PM }} install
156161
162+ - name : Initialize environment
163+ if : ${{ inputs.autoinit_env }}
164+ run : ${{ env.PM_RUN }} env:init:ci
165+
157166 - name : Check format
158167 run : ${{ env.PM_RUN }} ${{ inputs.format_command }}
159168
You can’t perform that action at this time.
0 commit comments