From 3c7aad07b86802eb44b503af20ae46a3d978c632 Mon Sep 17 00:00:00 2001 From: Warittorn Cheevachaipimol Date: Wed, 25 Sep 2024 13:45:51 +0700 Subject: [PATCH] cleanup --- .github/workflows/aggregate_signals.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/aggregate_signals.yml b/.github/workflows/aggregate_signals.yml index 407ba39..f2d014b 100644 --- a/.github/workflows/aggregate_signals.yml +++ b/.github/workflows/aggregate_signals.yml @@ -11,40 +11,40 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python + - name: Setup Python uses: actions/setup-python@v4 with: python-version: '3.11.2' - - name: Install Python dependencies + - name: Install Python Dependencies run: | python -m pip install --upgrade pip pip install pyyaml - - name: Run Python script + - name: Aggregate Signals run: python .github/scripts/merge_all.py ./signals . - - name: Cache Rust-Script Cache Directory + - name: Cache Rust-Script uses: actions/cache@v4 with: path: ~/.cache/rust-script - key: ${{ runner.os }}-rust-script + key: ${{ runner.os }}-rust-script-${{ hashFiles('.github/scripts/validate.rs') }} restore-keys: | - ${{ runner.os }}-rust-script + ${{ runner.os }}-rust-script-${{ hashFiles('.github/scripts/validate.rs') }} - - name: Setup Rust toolchain + - name: Setup Rust Toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Install rust-script + - name: Install Rust Script run: cargo install rust-script - - name: Install dependencies + - name: Install Dependencies run: sudo apt update && sudo apt-get install clang -y - - name: Run Rust script + - name: Validate Aggregated Signals run: .github/scripts/validate.rs registry.json - - name: Commit aggregated signals + - name: Commit uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: aggregate signals + commit_message: aggregated signals