Skip to content

Commit

Permalink
fix debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshiki Okuzawa committed Oct 23, 2023
1 parent 48ab0c3 commit f174f06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ runs:
API_TOKEN: ${{ inputs.apiToken }}
ROOM_ID: ${{ inputs.roomId }}
MESSAGE: ${{ inputs.message }}
- name: debug type
run: echo type = ${{ inputs.messageType }}
MESSAGE_TYPE: ${{ inputs.messageType }}
3 changes: 3 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
token: ENV['API_TOKEN'],
room_id: ENV['ROOM_ID'],
message: ENV['MESSAGE'].delete_prefix('"').delete_suffix('"')
message_type: ENV['MESSAGE_TYPE']
}

puts message_type

if params[:message].empty?
raise StandardError.new("empty message is not allowed.")
end
Expand Down

0 comments on commit f174f06

Please sign in to comment.