forked from ulixee/unblocked
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.52 KB
/
double-agent-probes.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
name: 'DA Probes'
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
profiler:
name: 'Update Probes Data'
runs-on: ubuntu-latest
steps:
- name: Install pcap
run: sudo apt-get install -y libpcap-dev
- name: Clone Profile Data
run: git clone https://github.com/ulixee/browser-profile-data.git
working-directory: ..
- name: Clone ulixee/shared
run: git clone https://github.com/ulixee/shared.git
working-directory: ..
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT }}
submodules: 'true'
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Install ulixee/shared
run: yarn build
working-directory: ../shared
- name: Yarn build
run: yarn build:simple
- name: Import Profiles
run: yarn workspace @ulixee/double-agent-stacks 0
- name: Create Probes
run: yarn workspace @ulixee/double-agent-stacks 1
- uses: stefanzweifel/git-auto-commit-action@v5
id: probe-data-checkin
with:
repository: ./double-agent/probe-data
branch: main
commit_message: "chore: automatic probe data"
- uses: stefanzweifel/git-auto-commit-action@v5
if: steps.probe-data-checkin.outputs.changes_detected == 'true'
with:
branch: main
commit_message: "chore(probes): point at new double agent"