Skip to content

Commit

Permalink
CI: Use commit title for the gh-pages commit
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Apr 3, 2024
1 parent 0afa289 commit ec5637e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ jobs:
set -xe
CAN_DEPLOY=$(python ../utils/please.py can_i_deploy_documentation)
DEPLOY_TO=$(python ../utils/please.py where_can_i_deploy_documentation)
TITLE=$(echo '${{ github.event.head_commit.message }}' | head -n 1)
echo "can_deploy=$CAN_DEPLOY" >> $GITHUB_OUTPUT
echo "deploy_to=$DEPLOY_TO" >> $GITHUB_OUTPUT
echo "commit_title='$TITLE'" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
build-documentation:
Expand Down Expand Up @@ -66,6 +68,9 @@ jobs:
ls -la doc
pip list
- name: Get Commit Title
run: |
- name: Build docs
shell: bash
run: |
Expand All @@ -84,4 +89,4 @@ jobs:
with:
folder: doc/_site
branch: ${{ needs.parse_commit_info.outputs.deploy_to }}
commit-message: ${{ github.event.head_commit.message }}
commit-message: ${{ needs.parse_commit_info.outputs.commit_title }}

0 comments on commit ec5637e

Please sign in to comment.