Skip to content

Commit

Permalink
fix #716: ci/cd: notify action has a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Apr 18, 2023
1 parent 8b676c5 commit b5da9ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
22 changes: 16 additions & 6 deletions .github/actions/notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ runs:
- name: Define notification message
id: message
run: |
if [ "${{ github.event.head_commit.message != null }}" == 'true' ]
if [ '${{ github.event.head_commit.message != null }}' == 'true' ]
then
echo txt="${{ github.event.head_commit.message }}" | head -1 >> $GITHUB_OUTPUT
elif [ "${{ github.event.schedule != null }}" == 'true' ]
(cat <<-message
txt=${{ github.event.head_commit.message }}
message
) | head -1 >> $GITHUB_OUTPUT
elif [ '${{ github.event.inputs.reason != null }}' == 'true' ]
then
echo txt="regular healthcheck" >> $GITHUB_OUTPUT
elif [ "${{ github.event.inputs.reason != null }}" == 'true' ]
(cat <<-message
txt=${{ github.event.inputs.reason }}
message
) | head -1 >> $GITHUB_OUTPUT
elif [ '${{ github.event.schedule != null }}' == 'true' ]
then
echo txt="${{ github.event.inputs.reason }}" >> $GITHUB_OUTPUT
echo txt='regular healthcheck' >> $GITHUB_OUTPUT
else
echo Cannot define notification message && exit 1
fi
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
branches: [ main ]
paths:
- '.github/workflows/docs.yml'
- 'docs/*'
- 'tools/pages/*'
- 'docs/**/*'
- 'tools/pages/**/*'
- 'tools/*.jsx?'
- 'tools/package*.json'
tags: [ '!*' ]
Expand Down

0 comments on commit b5da9ca

Please sign in to comment.