Skip to content

Commit

Permalink
Revert "remove all ci for testing"
Browse files Browse the repository at this point in the history
This reverts commit e1368e0.
  • Loading branch information
tigercosmos committed Jun 23, 2024
1 parent 7c47ca7 commit 4aad3ef
Show file tree
Hide file tree
Showing 8 changed files with 1,331 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/auto_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Auto Update

on:
schedule:
- cron: '0 0 1 * *' # Runs at 00:00, on day 1 of the month

permissions:
contents: read

jobs:
precommit-update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: dev
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.8.x"
- name: Run update
run: |
pip install pre-commit
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
with:
token: ${{ secrets.PAT }}
author: GitHub <noreply@github.com>
add-paths: .pre-commit-config.yaml
commit-message: Auto pre-commit update
body: |
Update pre-commit hooks to latest
Auto generated
branch: auto-update/precommit_update
delete-branch: true
title: Auto precommit update
labels: automated-pr
assignees: seladb

oui-update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: dev
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.9.x"
- name: Run update
run: |
python3 3rdParty/OUIDataset/create_oui_data.py
mv -f PCPP_OUIDataset.json 3rdParty/OUIDataset/PCPP_OUIDataset.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
with:
token: ${{ secrets.PAT }}
author: GitHub <noreply@github.com>
add-paths: 3rdParty/OUIDataset/PCPP_OUIDataset.json
commit-message: Auto OUI Database Update
body: |
Update OUI database to latest
Auto generated
branch: auto-update/oui_update
delete-branch: true
title: Auto OUI Database Update
labels: automated-pr
assignees: seladb
Loading

0 comments on commit 4aad3ef

Please sign in to comment.