Send a notification to Pushbullet.
PB_TOKEN
: The Pushbullet API token, you can get it from your account settingsPB_TYPE
: Notification's type, it can be either 'note' or 'link' or 'file'- example value:
link
- example value:
PB_TITLE
: (optional) Notification's title in case the type is 'note' or 'link'.- example value:
Build Completed!
- example value:
PB_BODY
: (optional) Notification's body.- example value:
Blog Project Build has compleled.
- example value:
PB_FILE_NAME
: (optional) Notification's file name in case the notifications' type is 'file'.- example value:
john.jpg
- example value:
PB_FILE_TYPE
: (optional) Notification's file type in case the notifications' type is 'file'.- example value:
image/jpeg
- example value:
PB_FILE_URL
: (optional) Notification's file url in case the notifications' type is 'file'.- example value:
https://dl.pushbulletusercontent.com/foGfub1jtC6yYcOMACk1AbHwTrTKvrDc/john.jpg
- example value:
All examples below are functionally complete and can be copy-pasted into a .github/workflows/deploy.yaml
file.
name: Pushbullet Notification
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Pushbullet Notification
uses: yassinebridi/pushbullet-action@v1.0.2
env:
PB_TOKEN: ${{ secrets.PB_TOKEN }}
PB_TYPE: note
PB_TITLE: Blog Project Build Complete!
PB_BODY: Blog project build has compleled.
name: Pushbullet Notification
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Pushbullet Notification
uses: yassinebridi/pushbullet-action@v1.0.2
env:
PB_TOKEN: ${{ secrets.PB_TOKEN }}
PB_TYPE: link
PB_TITLE: Blog Project Build Complete!
PB_BODY: Blog project build has compleled.
PB_URL: https://github.com/yassinebridi/pushbullet-action/runs/242945729
name: Pushbullet Notification
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Pushbullet Notification
uses: yassinebridi/pushbullet-action@v1.0.2
env:
PB_TOKEN: ${{ secrets.PB_TOKEN }}
PB_TYPE: file
PB_BODY: Blog project build has compleled.
PB_FILE_NAME: john.jpg
PB_FILE_TYPE: image/jpeg
PB_FILE_URL: https://picsum.photos/200/300