From 34185b6fd8fe407e9a385560b9c3864fbc5b7c75 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sun, 9 Mar 2025 20:27:27 +0900 Subject: [PATCH] add rule parser actions --- .github/workflows/create-rule-meta.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-rule-meta.yml b/.github/workflows/create-rule-meta.yml index 9f9e256b..a08352bd 100644 --- a/.github/workflows/create-rule-meta.yml +++ b/.github/workflows/create-rule-meta.yml @@ -17,8 +17,17 @@ jobs: repository: Yamato-Security/hayabusa-rules path: hayabusa-rules - - name: debug - run: cd wela-extractor && ls -la ../hayabusa-rules && ls -la ../config - - name: Run run: cd wela-extractor && cargo run --release -- ../hayabusa-rules ../config/eid_subcategory_mapping.csv ../config/hayabusa-rule-meta.json + + - name: Push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add *.json + git commit -m "Automated update" + if [ "$(git log -1 --pretty=%B)" = "Automated update" ]; then + git push origin main + fi