Skip to content

Commit b0b0fa0

Browse files
committed
add autoinit:env
1 parent 3a91af9 commit b0b0fa0

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/_checks-playwright.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ on:
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: |

.github/workflows/_checks-ts.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ on:
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

0 commit comments

Comments
 (0)