From 7451f65032ce6b1ebf15efb9860f5b71c758c8f4 Mon Sep 17 00:00:00 2001 From: gilesb Date: Thu, 23 Nov 2023 00:54:38 +0000 Subject: [PATCH] title --- .github/workflows/pull-request-target.yml | 5 ++++- .github/workflows/push.yml | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request-target.yml b/.github/workflows/pull-request-target.yml index f12a2df..72a82cc 100644 --- a/.github/workflows/pull-request-target.yml +++ b/.github/workflows/pull-request-target.yml @@ -59,6 +59,9 @@ jobs: node-version: '20.9.0' - run: git checkout -b ${{ github.head_ref }} - run: git pull origin ${{ github.head_ref }} + - id: get-head-commit-title + name: get-title + run: echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)" >> $GITHUB_OUTPUT - run: rm -rf document - run: mkdir document - uses: https://sigyl.com:3001/actions/ft-view-screen-document@main @@ -85,7 +88,7 @@ jobs: if: steps.has-changes.outputs.changes == 'true' run: | git add -A - git commit -a -m "documented ${{ github.event.head_commit.message }}" + git commit -a -m "documented ${{ steps.get-head-commit-title.outputs.title }}" git push origin HEAD exit 1 schema: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1d3773b..ed4c7fd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -59,9 +59,7 @@ jobs: # fetch-depth: '1' - id: get-head-commit-title name: get-title - run: | - echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)" >> $GITHUB_OUTPUT - cat $GITHUB_OUTPUT + run: echo "title=$(git log --format=%B -n 1 HEAD | head -n 1)" >> $GITHUB_OUTPUT - run: echo ${{ steps.get-head-commit-title.outputs.title }} - uses: actions/setup-node@v3 with: