Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-square

GitHub Action

RabbitMQ Message Sender

v1

RabbitMQ Message Sender

message-square

RabbitMQ Message Sender

Send a message to a queue on a RabbitMQ server

Installation

Copy and paste the following snippet into your .yml file.

              

- name: RabbitMQ Message Sender

uses: eferraris/rabbit-sender@v1

Learn more about this action in eferraris/rabbit-sender

Choose a version

Rabbit Sender Action

This Action helps you to send a message to a queue on a RabbitMQ running Server.

Inputs

Arg Default Description
RABBIT_USERNAME guest RabbitMQ Username
RABBIT_PASSWORD guest RabbitMQ Password
RABBIT_HOST localhost RabbitMQ Host
RABBIT_PORT 5672 RabbitMQ Port
RABBIT_USE_SSL true If the RabbitMQ uses SSL
RABBIT_QUEUE_NAME rabbit-sender Name of the queue the message must arrive
MESSAGE Hello World! Message you want to send

Usage

- name: Publish message to RabbitMQ
  uses: eferraris/rabbit-sender@v1
  with:
    MESSAGE: "Test message"
    RABBIT_QUEUE_NAME: "test-rabbit-queue"
    RABBIT_HOST: ${{ secrets.RABBIT_HOST }}
    RABBIT_USERNAME: ${{ secrets.RABBIT_USERNAME }}
    RABBIT_PASSWORD: ${{ secrets.RABBIT_PASSWORD }}
    RABBIT_PORT: 5671
    RABBIT_USE_SSL: true