Skip to content

Commit 4786552

Browse files
committed
First draft
1 parent 902a3cc commit 4786552

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/widget_build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Widget Build
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
commit_id:
8+
description: 'Branch or Commit ID (optional)'
9+
required: false
10+
type: string
11+
schedule:
12+
# Run at 10:00 UTC every day
13+
- cron: "00 10 * * *"
14+
15+
jobs:
16+
build_widget:
17+
defaults:
18+
run:
19+
shell: bash
20+
working-directory: ./client/
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repo at ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
24+
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 18
30+
- name: Install dependencies
31+
run: |
32+
npm install
33+
- name: Build
34+
run: |
35+
./build-to-guidance.sh
36+

0 commit comments

Comments
 (0)