This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
75 lines (62 loc) · 2.15 KB
/
emulator-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 'Emulator Data'
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
jobs:
profiler:
name: 'Update Emulator Profile Data'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Install pcap
run: sudo apt-get install -y libpcap-dev
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.PAT }}
submodules: 'recursive'
path: unblocked
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.PAT }}
repository: ulixee/browser-profile-data
path: browser-profile-data
- name: Clone ulixee/shared
run: git clone https://github.com/ulixee/shared.git
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: unblocked/yarn.lock
- name: Install ulixee/shared
run: yarn build
working-directory: shared
- name: Yarn build
run: yarn build
working-directory: unblocked
- name: Update Dom Bridges
run: yarn workspace @ulixee/unblocked-browser-profiler-dom-bridger generate
working-directory: unblocked
- name: Force Generate Profiles
run: yarn workspace @ulixee/unblocked-browser-emulator-builder generate force
working-directory: unblocked
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
repository: browser-profile-data
commit_message: "chore(dom-bridges): automatic updates"
- id: browser-data-checkin
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: unblocked/browser-emulator-builder/data
branch: main
commit_message: 'chore(browser-emulator-builder): automatic emulator data update'
- uses: stefanzweifel/git-auto-commit-action@v5
if: steps.browser-data-checkin.outputs.changes_detected == 'true'
with:
branch: main
repository: unblocked
push_options: '--no-verify'
commit_message: 'chore(browser-emulator-builder): automatic update emulator data ref'