Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(repo): commit contract documentation on branch #13788

Merged
merged 2 commits into from
May 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 5 additions & 23 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,11 @@ 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
- name: protocol - Commit contract documentation
uses: stefanzweifel/git-auto-commit-action@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
commit_message: Add auto-generated contract documentation
file_pattern: "**/*.md"
Loading