From 3bc0d1bdbc2dee5bd7da4ffe5dd35d568d388467 Mon Sep 17 00:00:00 2001 From: tequ Date: Sun, 10 Mar 2024 12:55:59 +0900 Subject: [PATCH] Add hook fee Github Action (#1) * add hook fee github action * run action only if contracts dir is changed --- .github/workflows/hook.yml | 24 ++++++++++++++++++++++++ .vscode/settings.json | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/hook.yml diff --git a/.github/workflows/hook.yml b/.github/workflows/hook.yml new file mode 100644 index 0000000..b414328 --- /dev/null +++ b/.github/workflows/hook.yml @@ -0,0 +1,24 @@ +name: Analyze Hooks +on: + push: + branches: [ "main" ] + paths: + - 'contracts/**' + pull_request: + branches: [ "main" ] + paths: + - 'contracts/**' + workflow_dispatch: +permissions: + pull-requests: write +jobs: + hook: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v4 + - name: Analyze Hooks + uses: tequdev/xrpl-hook-fee-actions@v1 + with: + inPath: contracts diff --git a/.vscode/settings.json b/.vscode/settings.json index 7a0100e..732f8e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,13 +3,13 @@ "[javascript]": { "editor.defaultFormatter": "biomejs.biome", "editor.codeActionsOnSave": { - "quickfix.biome": true + "quickfix.biome": "explicit" } }, "[c]":{ "editor.defaultFormatter": "xaver.clang-format", "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll": "explicit" } } }