From ec5637eaa3f56281b2b8af3e5338d33c66577652 Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Wed, 3 Apr 2024 17:56:15 +0300 Subject: [PATCH] CI: Use commit title for the gh-pages commit --- .github/workflows/documentation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 46ffbce96..55eafea17 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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: @@ -66,6 +68,9 @@ jobs: ls -la doc pip list + - name: Get Commit Title + run: | + - name: Build docs shell: bash run: | @@ -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 }}