Skip to content

Commit

Permalink
fix(repo): commit contract documentation on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed May 20, 2023
1 parent dd61f30 commit 13d6b47
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,8 @@ jobs:
# directory: ./packages/protocol/coverage
# flags: protocol

post-merge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up protocol
uses: ./.github/actions/set-up-protocol

- name: Run the command to update the documentation
- name: protocol - Generate contract documentation
run: pnpm -F protocol export:docs

- name: Stage all modified and untracked files
run: git add .

- name: Exit if there are no changes
run: git diff --exit-code --cached

- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: "docs(protocol): auto-update protocol documentation"
commit-message: "docs(protocol): auto-update protocol documentation"
branch: update-docs-${{ github.sha }}
delete-branch: true
- name: protocol - Commit generated documentation
uses: stefanzweifel/git-auto-commit-action@v4

0 comments on commit 13d6b47

Please sign in to comment.