/mqtt-action

Publish a MQTT message from GitHub Actions.

Primary LanguageJavaScriptMIT LicenseMIT

mqtt-action

Publish a MQTT message from GitHub Actions.

Usage

For example:

- name: Publish commit hash to mqtt broker
  uses: juhrlass/mqtt-action@master
  with:
    protocol: mqtt
    host: broker.example.com
    port: 1883
    topic: "mqtt-action/test"
    message: ${{ github.sha }}
    username: 'mqtt'
    password: ${{ secrets.MQTT_BROKER_PASSWORD }}

Uses mqtt.js

Params map to mqtt.js options: See: client-options.d.ts