Skip to content

Commit

Permalink
chore: fix null message
Browse files Browse the repository at this point in the history
  • Loading branch information
florianldt committed Sep 21, 2022
1 parent 4b38dcb commit 6e03dc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ jobs:
run: |
npm ci --ignore-scripts
npm run all
- name: 'Get message'
id: 'deploy-message'
run: |
echo "::set-output name=commit_msg::$(git log -1 --format=%B)"
echo "::set-output name=commit_sha::$(git log -1 --format=%H)"
- name: 'Slack Notification'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://raw.githubusercontent.com/florianldt/jerome/master/media/slack-icon.jpg
SLACK_USERNAME: Alf
SLACK_MESSAGE: ${{ steps.deploy-message.outputs.commit_msg }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 6e03dc5

Please sign in to comment.