Skip to content

Commit

Permalink
fix: master commit message (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain authored May 16, 2024
1 parent ef1cdb5 commit 9307346
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/on-master-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit 9307346

Please sign in to comment.