diff --git a/.github/workflows/pyfiction-docstring-generator.yml b/.github/workflows/pyfiction-docstring-generator.yml index bf6a099f9..8970d40fa 100644 --- a/.github/workflows/pyfiction-docstring-generator.yml +++ b/.github/workflows/pyfiction-docstring-generator.yml @@ -5,10 +5,6 @@ on: paths: - '**/*.hpp' - '.github/workflows/pyfiction-docstring-generator.yml' - pull_request: - paths: - - '**/*.hpp' - - '.github/workflows/pyfiction-docstring-generator.yml' workflow_dispatch: jobs: @@ -20,6 +16,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 # Fetch all history for all branches and tags - name: Setup Python uses: actions/setup-python@v5 @@ -50,7 +47,8 @@ jobs: path: ${{ github.workspace }}/bindings/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp overwrite: true - - uses: EndBug/add-and-commit@v9 + - name: Commit docstrings + uses: EndBug/add-and-commit@v9 with: add: 'bindings/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' commit: '--signoff'