All Projects → Ilshidur → action-mercure

Ilshidur / action-mercure

Licence: GPL-3.0 license
🚀 GitHub Action for Mercure.

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to action-mercure

node-mercure
📳 Mercure Hub & Publisher implemented in node.js.
Stars: ✭ 27 (+92.86%)
Mutual labels:  subscription, server-sent-events, push, live-updates, mercure
Mercure
Server-sent live updates: protocol and reference implementation
Stars: ✭ 2,608 (+18528.57%)
Mutual labels:  server-sent-events, push, mercure
Pushpin
Proxy server for adding push to your API
Stars: ✭ 3,050 (+21685.71%)
Mutual labels:  server-sent-events, push
Restbed
Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
Stars: ✭ 1,551 (+10978.57%)
Mutual labels:  server-sent-events, push
getui-pushapi-java-demo
个推官方提供的推送服务端API Demo(Java语言)
Stars: ✭ 32 (+128.57%)
Mutual labels:  push
azure-service-bus-go
Golang library for Azure Service Bus -- https://aka.ms/azsb
Stars: ✭ 67 (+378.57%)
Mutual labels:  subscription
fetch-event-source
A better API for making Event Source requests, with all the features of fetch()
Stars: ✭ 120 (+757.14%)
Mutual labels:  server-sent-events
cabl
Controller ABstraction Layer
Stars: ✭ 111 (+692.86%)
Mutual labels:  push
simple-subscribe
Collect emails with a subscription box you can add to any page and build your own independent subscriber base.
Stars: ✭ 67 (+378.57%)
Mutual labels:  subscription
server-sent-events-demo
Server Sent Events Demo for San Diego JS Meetup using Node, HTML, JavaScript, CSS.
Stars: ✭ 39 (+178.57%)
Mutual labels:  server-sent-events
cashier-register
Cashier Register is a simple quota feature usage tracker for Laravel Cashier subscriptions.
Stars: ✭ 93 (+564.29%)
Mutual labels:  subscription
responsive-html-email-templates
Collection of Free responsive HTML templates for Startups
Stars: ✭ 187 (+1235.71%)
Mutual labels:  subscription
Android-MonetizeApp
A sample which uses Google's Play Billing Library and it makes In-app Purchases and Subscriptions.
Stars: ✭ 149 (+964.29%)
Mutual labels:  subscription
PushAPI
魅族开放平台PUSH系统HTTP API接口规范以及说明文档
Stars: ✭ 28 (+100%)
Mutual labels:  push
Google-IAP
Android Library for easing Google Play Billing to your apps with support for Subscriptions, In-App Purchases and Consumables with a beautiful sample app.
Stars: ✭ 129 (+821.43%)
Mutual labels:  subscription
feedpushr
A simple feed aggregator daemon with sugar on top.
Stars: ✭ 222 (+1485.71%)
Mutual labels:  push
python-mercure
Python library to publish messages to Mercure Hub!
Stars: ✭ 18 (+28.57%)
Mutual labels:  mercure
utopia-crm
Utopía is an open source platform for community based newsrooms to manage their subscriptions
Stars: ✭ 15 (+7.14%)
Mutual labels:  subscription
signalr
SignalR server and client in go
Stars: ✭ 69 (+392.86%)
Mutual labels:  server-sent-events
Magento2 NewsletterSubscribeAtCheckout
This Magento 2 module allows you to enable a newsletter subscription checkbox on the checkout page.
Stars: ✭ 13 (-7.14%)
Mutual labels:  subscription

🚀 GitHub Action for Mercure

GitHubActions Build Status

Send a Mercure publish event. Simple as that.

GitHub Action

Compatibility note

As this Action is containerized with Docker, it can only run on Linux environments.

Docker container actions can only execute in the GitHub-hosted Linux environment.

Self-hosted runners must use a Linux operating system and have Docker installed to run Docker container actions. For more information about the requirements of self-hosted runners, see "About self-hosted runners."


Demo

  1. Go to https://demo.mercure.rocks, in the Subscribe section.
  2. Subscribe for notifications on this topic : foo.
  3. 🌟 Star 🌟 this repo !
  4. Quickly switch to the Mercure demo page to see a notification in your browser.

Usage

- name: Publish notification
 env:
   MERCURE_HUB_URL: ${{ secrets.MERCURE_HUB_URL }}
   MERCURE_HUB_JWT: ${{ secrets.MERCURE_HUB_JWT }}
   MERCURE_TOPICS: topic1,topic2
   MERCURE_TYPE: message
   MERCURE_PRIVATE: on
 uses: Ilshidur/action-mercure@master
 with:
   args: '{ \"hello\": \"world\" }'

NOTICE : for stability purposes, it is recommended to use the action with an explicit commit SHA-1 :

uses = "Ilshidur/action-mercure@c80298a8875d00ecc2d1e4cf07e205866251628c" (=> link to the commits list : https://github.com/Ilshidur/action-mercure/commits/master)

Arguments

The argument is the content of the event to send. It is RECOMMENDED to use JSON.

Environment variables can be interpolated in the message using brackets ({{ and }}) :

e.g.: args: "{ \"action\": \"{{ GITHUB_ACTION }}\" }"

Environment variables

  • MERCURE_TOPICS: the Mercure topics. Supports interpolation using ({{ and }}).

Secrets

  • MERCURE_HUB_URL (required) : the public Mercure hub URL.
  • MERCURE_HUB_JWT (required) : the publisher JWT. Keep it safe !
  • MERCURE_TYPE (optional) : The message type to send. Defaults to "message".
  • MERCURE_PRIVATE (optional) : Set this variable with whatever value to make the notification private. The recommended way is to set it to "on".
  • That's all.

Debugging / testing / development

Developers, all you need is in the DEVELOPMENT.md file.

License

GNU GENERAL PUBLIC LICENSE v3.


Don't forget to 🌟 Star 🌟 the repo if you like this GitHub Action !
Your feedback is appreciated

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].