File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 - run : |
2323 git clone https://github.com/gitbutlerapp/gitbutler ../gitbutler
2424
25- - id : versions
25+ - name : Compare versions
26+ id : versions
2627 run : |
2728 LATEST_RELEASE=$(git -C ../gitbutler tag --sort=-version:refname | grep '^release/' | head -n 1)
2829
@@ -34,11 +35,13 @@ jobs:
3435 echo "should_update=false" >> "$GITHUB_OUTPUT"
3536 fi
3637
37- - if : steps.versions.outputs.should_update == 'true'
38+ - name : Update generated docs
39+ if : steps.versions.outputs.should_update == 'true'
3840 run : |
3941 sudo apt-get update
4042 sudo apt-get install -y libdbus-1-dev libglib2.0-dev pkg-config
4143
44+ git -C ../gitbutler checkout "${{ steps.versions.outputs.latest_release }}"
4245 ./scripts/update-manpages.sh
4346
4447 sed -i "s|CURRENT_DOCS_VERSION: .*|CURRENT_DOCS_VERSION: ${{ steps.versions.outputs.latest_release }}|" .github/workflows/update-generated-docs.yml
5457
5558 echo "branch=$branch" >> "$GITHUB_ENV"
5659
57- - if : steps.versions.outputs.should_update == 'true'
60+ - name : Create pull request
61+ if : steps.versions.outputs.should_update == 'true'
5862 run : |
5963 gh pr create \
6064 --title "Update generated CLI documentation" \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ rm -f cli-docs/*
3838
3939# Regenerate documentation using cargo
4040echo " Regenerating CLI documentation with cargo..."
41- cargo run --bin but-clap --features raw-clap-docs
41+ cargo run -p but-clap - -bin but-clap --features raw-clap-docs
4242
4343echo " Documentation files regenerated successfully!"
4444echo
You can’t perform that action at this time.
0 commit comments