Skip to content

Commit

Permalink
Add action to auto update usage.md
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Apr 19, 2024
1 parent 882527b commit 27fcd65
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ jobs:
token: ${{ github.token }}
github-binarycache: true
- name: build-test
run: python3 build.py --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --build_root=./build --build_type Debug
run: |
python3 build.py --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --build_root=./build --build_type Debug
./build/securefs doc > docs/usage.md
- name: upload
uses: actions/upload-artifact@v1
with:
path: build/securefs
name: securefs-linux-amd64

- name: Create PR to update usage.md
if: ${{ github.event_name == 'push' }}
uses: peter-evans/create-pull-request@v6
with:
add-paths: docs/
title: Auto PR for usage.md
commit-message: Auto update usage.md
build-mac:
runs-on: macos-12
timeout-minutes: 35
Expand Down

0 comments on commit 27fcd65

Please sign in to comment.