Skip to content

Commit

Permalink
try env
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranf committed Sep 18, 2024
1 parent 3205281 commit 649234f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ runs:
using: composite
steps:
- name: Set fields
env:
input_message: ${{ inputs.message }}
shell: bash
if: always()
id: fields
Expand All @@ -42,11 +44,7 @@ runs:
echo "emoji=large_orange_square" >> $GITHUB_OUTPUT
echo "color=warning" >> $GITHUB_OUTPUT
fi
input_message=$(cat <<-EOF
${{ inputs.message }}
EOF
)
if [ ! -z $input_message ]; then
if [ ! -z '$input_message' ]; then
message=$input_message
elif [ ! -z '${{ github.event.head_commit.message }}' ]; then
# get commit message from `push` trigger
Expand Down

0 comments on commit 649234f

Please sign in to comment.