File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 66 schedule :
77 - cron : ' 0 6 * * *'
88 workflow_dispatch :
9+ inputs :
10+ docs :
11+ description : ' Deploy Docs'
12+ type : boolean
13+ default : true
14+ blog :
15+ description : ' Deploy Blog'
16+ type : boolean
17+ default : true
18+ website :
19+ description : ' Deploy Website'
20+ type : boolean
21+ default : true
922
1023jobs :
1124 changes :
3548
3649 build-docs :
3750 needs : changes
38- if : needs.changes.outputs.docs == 'true' || github.event_name == 'workflow_dispatch'
51+ if : needs.changes.outputs.docs == 'true' || ( github.event_name == 'workflow_dispatch' && inputs.docs)
3952 runs-on : ubuntu-latest
4053 steps :
4154 - uses : actions/checkout@v4
@@ -57,14 +70,14 @@ jobs:
5770
5871 build-blog :
5972 needs : changes
60- if : needs.changes.outputs.blog == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
73+ if : needs.changes.outputs.blog == 'true' || ( github.event_name == 'workflow_dispatch' && inputs.blog) || github.event_name == 'schedule'
6174 runs-on : ubuntu-latest
6275 steps :
6376 - uses : actions/checkout@v4
6477 - uses : pnpm/action-setup@v4
6578 - uses : actions/setup-node@v4
6679 with :
67- node-version : 20
80+ node-version : 22
6881 cache : ' pnpm'
6982 - run : pnpm install --frozen-lockfile
7083 - run : pnpm --filter @explainer/blog build
@@ -79,14 +92,14 @@ jobs:
7992
8093 build-website :
8194 needs : changes
82- if : needs.changes.outputs.website == 'true' || github.event_name == 'workflow_dispatch'
95+ if : needs.changes.outputs.website == 'true' || ( github.event_name == 'workflow_dispatch' && inputs.website)
8396 runs-on : ubuntu-latest
8497 steps :
8598 - uses : actions/checkout@v4
8699 - uses : pnpm/action-setup@v4
87100 - uses : actions/setup-node@v4
88101 with :
89- node-version : 20
102+ node-version : 22
90103 cache : ' pnpm'
91104 - run : pnpm install --frozen-lockfile
92105 - run : pnpm --filter @explainer/website build
You can’t perform that action at this time.
0 commit comments