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

GitHub Action

Send Push Notification

1.2.0

Send Push Notification

send

Send Push Notification

Receive push notification on your iOS & Android devices using Github Actions

Installation

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

              

- name: Send Push Notification

uses: techulus/push-github-action@1.2.0

Learn more about this action in techulus/push-github-action

Choose a version

Github Action for Push Notification

Receive push notification to your devices using Github Actions

Pre-requisites

To run this action you'll need:

Setup

  1. Create the workflow and choose any event of your choice.
  2. Copy and paste the following snippet into your .yml file.
- name: Send Push Notification
  uses: techulus/push-github-action@1.0.0
  1. Add a new secret API_KEY (your API key) and an environment variable MESSAGE (notification message)
  2. Commit your changes!

Sample Workflows

Send notification on every commit

name: Push on commit

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Send Push Notification
      uses: techulus/push-github-action@1.0.0
      env:
        API_KEY: ${{ secrets.API_KEY }}
        MESSAGE: "There is a new commit!"

Send notification using schedule trigger

name: Test push every day

on: 
  schedule:
    - cron: '* 0 * * *'

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Send Push Notification
      uses: techulus/push-github-action@1.0.0
      env:
        API_KEY: ${{ secrets.API_KEY }}
        MESSAGE: "Test notification from GitHub"

Customize notification title / add a link

name: Test push every day

on: 
  schedule:
    - cron: '* 0 * * *'
jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Send Push Notification
      uses: techulus/push-github-action@1.0.0
      env:
        API_KEY: ${{ secrets.API_KEY }}
        MESSAGE: "Test notification from GitHub 🧪"
        TITLE: Testing
        LINK: https://github.com/techulus/push-github-action
        SOUND: scifi
        TIME_SENSITIVE: true

Support

Feature Request, Bugs and Ideas can be added here.