Skip to content

feat: Add OpenRPC API docs and associated JSON Schemas #39

feat: Add OpenRPC API docs and associated JSON Schemas

feat: Add OpenRPC API docs and associated JSON Schemas #39

Workflow file for this run

name: 🤖 Dependabot PR
on:
pull_request_target:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.DEPENDABOT_UPDATE_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
tool: cargo-hakari
- name: Run cargo-hakari
run: |
cargo hakari generate
- name: Check for modified files
id: git-check
run: echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git commit -am "chore(deps): cargo hakari"
git push