From 93073468fc1ee762646c9c727b8695b96bda9af9 Mon Sep 17 00:00:00 2001 From: Darren Kelly <107671032+darrenvechain@users.noreply.github.com> Date: Thu, 16 May 2024 10:43:59 +0100 Subject: [PATCH] fix: master commit message (#741) --- .github/workflows/on-master-commit.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-master-commit.yaml b/.github/workflows/on-master-commit.yaml index a1a050d43..80fc19de2 100644 --- a/.github/workflows/on-master-commit.yaml +++ b/.github/workflows/on-master-commit.yaml @@ -70,11 +70,14 @@ jobs: if: always() && (needs.publish-docker-image.result != 'success' || needs.run-unit-tests.result != 'success' || needs.lint.result != 'success' || needs.run-e2e-tests.result != 'success' || needs.license-check.result != 'success') runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Get the commit message id: commit_message # This is a workaround to get the first line of the commit message. Passing the entire message can cause the payload (JSON) to be invalid. run: | - echo "commit_message=$(echo ${{ github.event.head_commit.message }} | head -n 1)" >> "$GITHUB_ENV" + echo "commit_message=$(git show-branch --no-name HEAD)" >> "$GITHUB_ENV" - name: Notify Slack uses: slackapi/slack-github-action@v1.25.0