DA Probes #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PAT }} | |
submodules: 'true' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install ulixee/shared | |
run: yarn build | |
working-directory: ../shared | |
- name: Yarn build | |
run: yarn build | |
- 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@v4 | |
id: probe-data-checkin | |
with: | |
repository: ./double-agent/probe-data | |
branch: main | |
commit_message: "chore: automatic probe data" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: steps.probe-data-checkin.outputs.changes_detected == 'true' | |
with: | |
branch: main | |
commit_message: "chore(probes): point at new double agent" |