From be829a14755067c115c5a1d6751dcfe76ad6078d Mon Sep 17 00:00:00 2001 From: Adi Shankara Date: Thu, 3 Aug 2023 14:40:48 +0930 Subject: [PATCH] add workflow to sync rpc commands --- .github/workflows/readme-rpc-sync.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/readme-rpc-sync.yml diff --git a/.github/workflows/readme-rpc-sync.yml b/.github/workflows/readme-rpc-sync.yml new file mode 100644 index 000000000..a89c19807 --- /dev/null +++ b/.github/workflows/readme-rpc-sync.yml @@ -0,0 +1,28 @@ +name: ReadMe RPC Sync + +on: + push: + branches: + - 'master' + paths: + - 'doc/**.md' + +jobs: + rdme-rpc-sync: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install requests module + run: python -m pip install requests + + - name: Set environment variable and run + env: + README_API_KEY: ${{ secrets.README_API_KEY }} + run: python .github/scripts/sync-rpc-cmds.py